Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Telegram.Bot.API.Methods.GetMyCommands
Contents
Synopsis
- data GetMyCommandsRequest = GetMyCommandsRequest {}
- type GetMyCommands = "getMyCommands" :> (ReqBody '[JSON] GetMyCommandsRequest :> Post '[JSON] (Response [BotCommand]))
- getMyCommands :: GetMyCommandsRequest -> ClientM (Response [BotCommand])
getMyCommands
data GetMyCommandsRequest Source #
Request parameters for getMyCommands
.
Constructors
GetMyCommandsRequest | |
Fields
|
Instances
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.