haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetChatDiscussionGroup

Synopsis

Documentation

data SetChatDiscussionGroup Source #

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

Constructors

SetChatDiscussionGroup 

Fields

  • chat_id :: Maybe Int

    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 :: Maybe Int

    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