Interface SearchAffiliatePrograms

Searches affiliate programs that can be applied to the given chat. Request type for Tdjson#searchAffiliatePrograms.

interface SearchAffiliatePrograms {
    @type: "searchAffiliatePrograms";
    chat_id: number;
    limit: number;
    offset: string;
    sort_order: AffiliateProgramSortOrder;
}

Properties

@type: "searchAffiliatePrograms"
chat_id: number

Identifier of the chat for which affiliate programs are searched for. 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.

limit: number

The maximum number of affiliate programs to return.

offset: string

Offset of the first affiliate program to return as received from the previous request; use empty string to get the first chunk of results.

Sort order for the results.