Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype GetChatMenuButtonRequest = GetChatMenuButtonRequest {}
- type GetChatMenuButton = "getChatMenuButton" :> (ReqBody '[JSON] GetChatMenuButtonRequest :> Post '[JSON] (Response MenuButton))
- getChatMenuButton :: GetChatMenuButtonRequest -> ClientM (Response MenuButton)
- defGetChatMenuButton :: GetChatMenuButtonRequest
getChatMenuButton
newtype GetChatMenuButtonRequest Source #
Request parameters for getChatMenuButton
.
GetChatMenuButtonRequest | |
|
Instances
FromJSON GetChatMenuButtonRequest Source # | |
ToJSON GetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.GetChatMenuButton | |
Generic GetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.GetChatMenuButton type Rep GetChatMenuButtonRequest :: Type -> Type # | |
type Rep GetChatMenuButtonRequest Source # | |
Defined in Telegram.Bot.API.Methods.GetChatMenuButton type Rep GetChatMenuButtonRequest = D1 ('MetaData "GetChatMenuButtonRequest" "Telegram.Bot.API.Methods.GetChatMenuButton" "telegram-bot-api-7.4.4-fdOK3VCUfTCfzXncfzYz7" 'True) (C1 ('MetaCons "GetChatMenuButtonRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "getChatMenuButtonRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)))) |
type GetChatMenuButton = "getChatMenuButton" :> (ReqBody '[JSON] GetChatMenuButtonRequest :> Post '[JSON] (Response MenuButton)) Source #
getChatMenuButton :: GetChatMenuButtonRequest -> ClientM (Response MenuButton) Source #
Use this method to get the current value
of the bot's menu button in a private chat, or the default menu button.
Returns MenuButton
on success.