Interface InviteUsersToBot

Invites users to private chats with a bot owned by the current user. Can be called only if userTypeBot.can_be_edited == true. Each invited user will receive a message of the type messageBotInvite, and the bot will be able to send messages to that user. The request succeeds if at least one user was invited. Request type for Tdjson#inviteUsersToBot.

interface InviteUsersToBot {
    @type: "inviteUsersToBot";
    bot_user_id: number;
    user_ids: number[];
}

Properties

@type: "inviteUsersToBot"
bot_user_id: number

Identifier of the bot.

user_ids: number[]

Identifiers of the users to invite; 1-10 different users.