telegram-bot-api-6.7: 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.

Instances

Instances details
FromJSON SetMyNameRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyName

ToJSON SetMyNameRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyName

Generic SetMyNameRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyName

Associated Types

type Rep SetMyNameRequest :: Type -> Type #

type Rep SetMyNameRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyName

type Rep SetMyNameRequest = D1 ('MetaData "SetMyNameRequest" "Telegram.Bot.API.Methods.SetMyName" "telegram-bot-api-6.7-8B5O9jcStFh8aacJiwZZeM" 'False) (C1 ('MetaCons "SetMyNameRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "setMyNameName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "setMyNameLanguageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

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

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