Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SetChatMenuButtonRequest = SetChatMenuButtonRequest {}
- type SetChatMenuButton = "setChatMenuButton" :> (ReqBody '[JSON] SetChatMenuButtonRequest :> Post '[JSON] (Response Bool))
- setChatMenuButton :: SetChatMenuButtonRequest -> ClientM (Response Bool)
setChatMenuButton
data SetChatMenuButtonRequest Source #
Request parameters for setChatMenuButton
.
SetChatMenuButtonRequest | |
|
Instances
FromJSON SetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatMenuButton | |
ToJSON SetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatMenuButton | |
Generic SetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatMenuButton type Rep SetChatMenuButtonRequest :: Type -> Type # | |
type Rep SetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.SetChatMenuButton type Rep SetChatMenuButtonRequest = D1 ('MetaData "SetChatMenuButtonRequest" "Telegram.Bot.API.Methods.SetChatMenuButton" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SetChatMenuButtonRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "setChatMenuButtonRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)) :*: S1 ('MetaSel ('Just "setChatMenuButtonRequestMenuButton") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MenuButton)))) |
type SetChatMenuButton = "setChatMenuButton" :> (ReqBody '[JSON] SetChatMenuButtonRequest :> Post '[JSON] (Response Bool)) Source #
setChatMenuButton :: SetChatMenuButtonRequest -> ClientM (Response Bool) Source #
Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success.