telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Methods.GetChatMenuButton

Synopsis

getChatMenuButton

data GetChatMenuButtonRequest Source #

Request parameters for getChatMenuButton.

Constructors

GetChatMenuButtonRequest 

Fields

Instances

Instances details
Generic GetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetChatMenuButton

Associated Types

type Rep GetChatMenuButtonRequest :: Type -> Type #

FromJSON GetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetChatMenuButton

Methods

parseJSON :: Value -> Parser GetChatMenuButtonRequest

parseJSONList :: Value -> Parser [GetChatMenuButtonRequest]

ToJSON GetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetChatMenuButton

type Rep GetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.GetChatMenuButton

type Rep GetChatMenuButtonRequest = D1 ('MetaData "GetChatMenuButtonRequest" "Telegram.Bot.API.Methods.GetChatMenuButton" "telegram-bot-api-6.5-inplace" 'False) (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.