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

Telegram.Bot.API.Types.MenuButton

Contents

Synopsis

MenuButton

data MenuButton Source #

This object describes the bot's menu button in a private chat. If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.

Constructors

MenuButtonCommands

Represents a menu button, which opens the bot's list of commands.

MenuButtonWebApp

Represents a menu button, which launches a Web App.

MenuButtonDefault

Describes that no specific value for the menu button was set.

Instances

Instances details
FromJSON MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.MenuButton

ToJSON MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.MenuButton

Generic MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.MenuButton

Associated Types

type Rep MenuButton :: Type -> Type #

type Rep MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.MenuButton

type Rep MenuButton = D1 ('MetaData "MenuButton" "Telegram.Bot.API.Types.MenuButton" "telegram-bot-api-6.7-8B5O9jcStFh8aacJiwZZeM" 'False) (C1 ('MetaCons "MenuButtonCommands" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MenuButtonWebApp" 'PrefixI 'True) (S1 ('MetaSel ('Just "menuButtonWebAppText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "menuButtonWebAppWebApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WebAppInfo)) :+: C1 ('MetaCons "MenuButtonDefault" 'PrefixI 'False) (U1 :: Type -> Type)))