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

TD.Query.CreateBot

Synopsis

Documentation

data CreateBot Source #

Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message BOT_CREATE_LIMIT_EXCEEDED if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error. Returns User

Constructors

CreateBot 

Fields

  • manager_bot_user_id :: Maybe Int

    Identifier of the bot that will manage the created bot

  • name :: Maybe Text

    Name of the bot; 1-64 characters

  • username :: Maybe Text

    Username of the bot. The username must end with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive. Use checkBotUsername to find whether the name is suitable. If the username doesn't end with "bot", then the current user must have Telegram Premium subscription, the chosen username will be assigned as secondary and an additional regular username ending with "bot" will be automatically assigned to the created bot

  • via_link :: Maybe Bool

    Pass true if the bot is created from an internalLinkTypeRequestManagedBot link

Instances

Instances details
ToJSON CreateBot Source # 
Instance details

Defined in TD.Query.CreateBot

Show CreateBot Source # 
Instance details

Defined in TD.Query.CreateBot

Eq CreateBot Source # 
Instance details

Defined in TD.Query.CreateBot

ShortShow CreateBot Source # 
Instance details

Defined in TD.Query.CreateBot