telegram-bot-api-7.0: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
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
FromJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

ToJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

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 #

Show Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

Methods

showsPrec :: Int -> Game -> ShowS #

show :: Game -> String #

showList :: [Game] -> ShowS #

type Rep Game Source # 
Instance details

Defined in Telegram.Bot.API.Types.Game

type Rep Game = D1 ('MetaData "Game" "Telegram.Bot.API.Types.Game" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "Game" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gameTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "gameDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "gamePhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PhotoSize]))) :*: (S1 ('MetaSel ('Just "gameText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "gameTextEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: S1 ('MetaSel ('Just "gameAnimation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Animation))))))