View Source ExTDLib.Method.SetChatDiscussionGroup (ExTDLib v0.0.4)

Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified. Returns object_ptr<Ok>.

NameTypeDescription
chat_idstringIdentifier 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 rights in the supergroup).
discussion_chat_idstringIdentifier 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.

More details on telegram's documentation.