Interface SetChatDiscussionGroup

Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified. Request type for Tdjson#setChatDiscussionGroup.

interface SetChatDiscussionGroup {
    @type: "setChatDiscussionGroup";
    chat_id: number;
    discussion_chat_id: number;
}

Properties

@type: "setChatDiscussionGroup"
chat_id: number

Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires can_pin_messages member right in the supergroup).

discussion_chat_id: number

Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. Basic group chats must be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be used first to change that.