Game

data class Game(title: String, description: String, photo: List<PhotoSize>, text: String?, text_entities: List<MessageEntity>?, animation: Animation?) : TelegramModel

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

Constructors

Game
Link copied to clipboard
fun Game(title: String, description: String, photo: List<PhotoSize>, text: String? = null, text_entities: List<MessageEntity>? = null, animation: Animation? = null)
Creates a Game.

Properties

animation
Link copied to clipboard
val animation: Animation? = null
Optional.
description
Link copied to clipboard
val description: String
Description of the game
photo
Link copied to clipboard
val photo: List<PhotoSize>
Photo that will be displayed in the game message in chats.
text
Link copied to clipboard
val text: String? = null
Optional.
text_entities
Link copied to clipboard
val text_entities: List<MessageEntity>? = null
Optional.
title
Link copied to clipboard
val title: String
Title of the game