Interface ProcessCommunityAddChatRequest

Handles a pending request to add a chat to a community; requires can_edit_chat_list administrator right in the community. Request type for Tdjson#processCommunityAddChatRequest.

interface ProcessCommunityAddChatRequest {
    @type: "processCommunityAddChatRequest";
    approve?: boolean;
    chat_id: number;
    community_id: number;
}

Properties

@type: "processCommunityAddChatRequest"
approve?: boolean

Pass true to approve the request and add the chat to the community; pass false to decline it. If the community already has the maximum number of chats, then approval fails with the error "COMMUNITY_PEERS_TOO_MUCH".

chat_id: number

Identifier of the chat from the request.

community_id: number

Identifier of the community.