telegram-bot-api-6.7: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Methods.DeleteMyCommands

Synopsis

deleteMyCommands

data DeleteMyCommandsRequest Source #

Request parameters for deleteMyCommands.

Constructors

DeleteMyCommandsRequest 

Fields

Instances

Instances details
FromJSON DeleteMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.DeleteMyCommands

ToJSON DeleteMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.DeleteMyCommands

Generic DeleteMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.DeleteMyCommands

Associated Types

type Rep DeleteMyCommandsRequest :: Type -> Type #

type Rep DeleteMyCommandsRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.DeleteMyCommands

type Rep DeleteMyCommandsRequest = D1 ('MetaData "DeleteMyCommandsRequest" "Telegram.Bot.API.Methods.DeleteMyCommands" "telegram-bot-api-6.7-8B5O9jcStFh8aacJiwZZeM" '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))))

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.