Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
.
GetMyCommandsRequest | |
|
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.