haskell-tdlib-2.1.30.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.AddCommunityChat

Synopsis

Documentation

data AddCommunityChat Source #

Adds a chat to a community. If the current user isn't allowed to change the list of chats in the community, then a request to add the chat is sent to administrators of the community instead and the method fails with the error COMMUNITY_REQUEST_CREATED. Returns Ok

Constructors

AddCommunityChat 

Fields

  • community_id :: Maybe Int

    Identifier of the community

  • chat_id :: Maybe Int

    Identifier of the chat to add; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; basic group chats will be automatically upgraded to supergroup chats. A community can have up to getOption("community_chat_count_max") supergroup and channel chats and up to getOption("community_bot_count_max") chats with bots; otherwise, the method fails with the error COMMUNITY_PEERS_TOO_MUCH

  • is_hidden :: Maybe Bool

    Pass true if the chat will be visible only to administrators of the community