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

Telegram.Bot.API.Types.Game

Contents

Synopsis

Game

data Game Source #

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

Constructors

Game 

Fields

  • gameTitle :: Text

    Title of the game.

  • gameDescription :: Text

    Description of the game.

  • gamePhoto :: [PhotoSize]

    Photo that will be displayed in the game message in chats.

  • gameText :: Maybe Text

    Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.

  • gameTextEntities :: Maybe [MessageEntity]

    Special entities that appear in text, such as usernames, URLs, bot commands, etc.

  • gameAnimation :: Maybe Animation

    Animation that will be displayed in the game message in chats. Upload via BotFather.

Instances

Instances details
Show Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

Methods

showsPrec :: Int -> Game -> ShowS #

show :: Game -> String #

showList :: [Game] -> ShowS #

Generic Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

Associated Types

type Rep Game :: Type -> Type #

Methods

from :: Game -> Rep Game x #

to :: Rep Game x -> Game #

FromJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

Methods

parseJSON :: Value -> Parser Game

parseJSONList :: Value -> Parser [Game]

ToJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

Methods

toJSON :: Game -> Value

toEncoding :: Game -> Encoding

toJSONList :: [Game] -> Value

toEncodingList :: [Game] -> Encoding

type Rep Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game