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

Telegram.Bot.API.Methods.SetMyCommands

Synopsis

setMyCommands

data SetMyCommandsRequest Source #

Request parameters for setMyCommands.

Constructors

SetMyCommandsRequest 

Fields

  • setMyCommandsCommands :: [BotCommand]

    A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.

  • setMyCommandsScope :: Maybe BotCommandScope

    A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.

  • setMyCommandsLanguageCode :: Maybe Text

    A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands

Instances

Instances details
FromJSON SetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyCommands

ToJSON SetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyCommands

Generic SetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyCommands

Associated Types

type Rep SetMyCommandsRequest :: Type -> Type #

type Rep SetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetMyCommands

type Rep SetMyCommandsRequest = D1 ('MetaData "SetMyCommandsRequest" "Telegram.Bot.API.Methods.SetMyCommands" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SetMyCommandsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "setMyCommandsCommands") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BotCommand]) :*: (S1 ('MetaSel ('Just "setMyCommandsScope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BotCommandScope)) :*: S1 ('MetaSel ('Just "setMyCommandsLanguageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

setMyCommands :: SetMyCommandsRequest -> ClientM (Response Bool) Source #

Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.