invite_users_to_bot()¶
- async Client.invite_users_to_bot()¶
Invite users to the private chat with a bot owned by the current user. The bot will be able to send messages to the invited users.
Usable by Users Bots- Parameters:
bot_id (
int|str) – Unique identifier (int) or username (str) of the bot. The bot must be owned by the current user.user_ids (
int|str| Iterable ofintorstr) – Unique identifiers (int) or usernames (str) of up to 10 users to invite.
- Returns:
bool– True on success.
Example
await app.invite_users_to_bot("my_bot", ["alice", 123456789])