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

Telegram.Bot.API.Types.BotCommand

Contents

Synopsis

BotCommand

data BotCommand Source #

This object represents a bot command.

Constructors

BotCommand 

Fields

Instances

Instances details
Show BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommand

Generic BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommand

Associated Types

type Rep BotCommand :: Type -> Type #

FromJSON BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommand

Methods

parseJSON :: Value -> Parser BotCommand

parseJSONList :: Value -> Parser [BotCommand]

ToJSON BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommand

Methods

toJSON :: BotCommand -> Value

toEncoding :: BotCommand -> Encoding

toJSONList :: [BotCommand] -> Value

toEncodingList :: [BotCommand] -> Encoding

type Rep BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommand

type Rep BotCommand = D1 ('MetaData "BotCommand" "Telegram.Bot.API.Types.BotCommand" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "BotCommand" 'PrefixI 'True) (S1 ('MetaSel ('Just "botCommandCommand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "botCommandDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))