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

TD.Query.CheckBotUsername

Synopsis

Documentation

data CheckBotUsername Source #

Checks whether a username can be set for a new bot or assigned as a secondary username to an existing bot. Use checkChatUsername to check username for other chat types. Returns CheckChatUsernameResult

Constructors

CheckBotUsername 

Fields

  • username :: Maybe Text

    Username to be checked

  • is_secondary :: Maybe Bool

    Pass true to check whether the username is suitable as a secondary username for an existing bot; pass false to check whether the username is suitable for createBot