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

Telegram.Bot.API.Methods.SetChatMenuButton

Synopsis

setChatMenuButton

data SetChatMenuButtonRequest Source #

Request parameters for setChatMenuButton.

Constructors

SetChatMenuButtonRequest 

Fields

Instances

Instances details
FromJSON SetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatMenuButton

ToJSON SetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatMenuButton

Generic SetChatMenuButtonRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatMenuButton

Associated Types

type Rep SetChatMenuButtonRequest :: Type -> Type #

type Rep SetChatMenuButtonRequest Source # 
Instance details

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))))

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.