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

Telegram.Bot.API.Methods.GetMyCommands

Synopsis

getMyCommands

data GetMyCommandsRequest Source #

Request parameters for getMyCommands.

Constructors

GetMyCommandsRequest 

Fields

Instances

Instances details
Generic GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

Associated Types

type Rep GetMyCommandsRequest :: Type -> Type #

FromJSON GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

Methods

parseJSON :: Value -> Parser GetMyCommandsRequest

parseJSONList :: Value -> Parser [GetMyCommandsRequest]

ToJSON GetMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetMyCommands

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-6.5-inplace" '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))))

type GetMyCommands = "getMyCommands" :> (ReqBody '[JSON] GetMyCommandsRequest :> Post '[JSON] (Response [BotCommand])) Source #

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.