Interface SetChatAffiliateProgram

Changes affiliate program for a bot. Request type for Tdjson#setChatAffiliateProgram.

interface SetChatAffiliateProgram {
    @type: "setChatAffiliateProgram";
    chat_id: number;
    parameters: AffiliateProgramParameters;
}

Properties

@type: "setChatAffiliateProgram"
chat_id: number

Identifier of the chat with an owned bot for which affiliate program is changed.

Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore.