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

TD.Query.CreateCommunity

Synopsis

Documentation

data CreateCommunity Source #

Creates a new community for the given chat. Returns identifier of the created community. Returns CommunityId

Constructors

CreateCommunity 

Fields

  • name :: Maybe Text

    Name of the new community

  • chat_id :: Maybe Int

    Identifier of the chat in the community; 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

  • is_chat_hidden :: Maybe Bool

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