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.GetMyCommands

Synopsis

getMyCommands

data GetMyCommandsRequest Source #

Request parameters for getMyCommands.

Constructors

GetMyCommandsRequest 

Fields

Instances

Instances details
FromJSON GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

ToJSON GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

Generic GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

Associated Types

type Rep GetMyCommandsRequest :: Type -> Type #

type Rep GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

type Rep GetMyCommandsRequest = D1 ('MetaData "GetMyCommandsRequest" "Telegram.Bot.API.Methods.GetMyCommands" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "GetMyCommandsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "getMyCommandsScope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BotCommandScope)) :*: S1 ('MetaSel ('Just "getMyCommandsLanguageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

getMyCommands :: GetMyCommandsRequest -> ClientM (Response [BotCommand]) Source #

Use this method to get the current list of the bot's commands for the given scope and user language. Returns Array of BotCommand on success. If commands aren't set, an empty list is returned.