Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DeleteMyCommandsRequest = DeleteMyCommandsRequest {}
- type DeleteMyCommands = "deleteMyCommands" :> (ReqBody '[JSON] DeleteMyCommandsRequest :> Post '[JSON] (Response Bool))
- deleteMyCommands :: DeleteMyCommandsRequest -> ClientM (Response Bool)
deleteMyCommands
data DeleteMyCommandsRequest Source #
Request parameters for deleteMyCommands
.
DeleteMyCommandsRequest | |
|
Instances
FromJSON DeleteMyCommandsRequest Source # | |
Defined in Telegram.Bot.API.Methods.DeleteMyCommands | |
ToJSON DeleteMyCommandsRequest Source # | |
Defined in Telegram.Bot.API.Methods.DeleteMyCommands | |
Generic DeleteMyCommandsRequest Source # | |
Defined in Telegram.Bot.API.Methods.DeleteMyCommands type Rep DeleteMyCommandsRequest :: Type -> Type # | |
type Rep DeleteMyCommandsRequest Source # | |
Defined in Telegram.Bot.API.Methods.DeleteMyCommands type Rep DeleteMyCommandsRequest = D1 ('MetaData "DeleteMyCommandsRequest" "Telegram.Bot.API.Methods.DeleteMyCommands" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "DeleteMyCommandsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteMyCommandsScope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BotCommandScope)) :*: S1 ('MetaSel ('Just "deleteMyCommandsLanguageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) |
type DeleteMyCommands = "deleteMyCommands" :> (ReqBody '[JSON] DeleteMyCommandsRequest :> Post '[JSON] (Response Bool)) Source #
deleteMyCommands :: DeleteMyCommandsRequest -> ClientM (Response Bool) Source #
Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.