Interface ConnectChatAffiliateProgram

Connects an affiliate program to the given chat. Returns information about the connected affiliate program. Request type for Tdjson#connectChatAffiliateProgram.

interface ConnectChatAffiliateProgram {
    @type: "connectChatAffiliateProgram";
    bot_user_id: number;
    chat_id: number;
}

Properties

@type: "connectChatAffiliateProgram"
bot_user_id: number

Identifier of the bot, which affiliate program is connected.

chat_id: number

Identifier of the chat to which the affiliate program will be connected. Can be an identifier of the Saved Messages chat, of a chat with an owned bot, or of a channel chat with can_post_messages administrator right.