telegram-bot-api-7.0: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Methods.SetMyName

Contents

Synopsis

setMyName

data SetMyNameRequest Source #

Constructors

SetMyNameRequest 

Fields

  • setMyNameName :: Maybe Text

    New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.

  • setMyNameLanguageCode :: Maybe Text

    A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.

setMyName :: SetMyNameRequest -> ClientM (Response Bool) Source #

Use this method to change the bot's name. Returns True on success.