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

TD.Query.CreateForumTopic

Synopsis

Documentation

data CreateForumTopic Source #

Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator or can_create_topics member right in the supergroup. Returns ForumTopicInfo

Constructors

CreateForumTopic 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat

  • name :: Maybe Text

    Name of the topic; 1-128 characters

  • is_name_implicit :: Maybe Bool

    Pass true if the name of the topic wasn't entered explicitly; for chats with bots only

  • icon :: Maybe ForumTopicIcon

    Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons