All Downloads are FREE. Search and download functionalities are using the official Maven repository.

telegramium.bots.Game.scala Maven / Gradle / Ivy

package telegramium.bots

/** This object represents a game. Use BotFather to create and edit games, their short names will act as unique
  * identifiers.
  *
  * @param title
  *   Title of the game
  * @param description
  *   Description of the game
  * @param photo
  *   Photo that will be displayed in the game message in chats.
  * @param text
  *   Optional. 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.
  * @param textEntities
  *   Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
  * @param animation
  *   Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
  */
final case class Game(
  title: String,
  description: String,
  photo: List[PhotoSize] = List.empty,
  text: Option[String] = Option.empty,
  textEntities: List[iozhik.OpenEnum[MessageEntity]] = List.empty,
  animation: Option[Animation] = Option.empty
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy