haskell-tdlib-2.1.14.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 premiumLimitTypeOwnedBotCount. 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". Use checkBotUsername to find whether the name is suitable

  • 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