Interface GetChatAffiliateProgram

Returns an affiliate program that were connected to the given chat by identifier of the bot that created the program. Request type for Tdjson#getChatAffiliateProgram.

interface GetChatAffiliateProgram {
    @type: "getChatAffiliateProgram";
    bot_user_id: number;
    chat_id: number;
}

Properties

@type: "getChatAffiliateProgram"
bot_user_id: number

Identifier of the bot that created the program.

chat_id: number

Identifier of the chat for which the affiliate program was 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.