set_chat_discussion_group


Description:

public async Ok set_chat_discussion_group (int64 chat_id, int64 discussion_chat_id) throws TDLibError

Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified

Parameters:

chat_id

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

Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method Client.get_suitable_discussion_chats 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 Client.toggle_supergroup_is_all_history_available must be used first to change that