Class Game
java.lang.Object
io.micronaut.chatbots.telegram.api.Game
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Animation@NonNull StringgetPhoto()@Nullable StringgetText()@Nullable List<MessageEntity>@NonNull StringgetTitle()voidsetAnimation(@Nullable Animation animation) voidsetDescription(@NonNull String description) voidvoidvoidsetTextEntities(@Nullable List<MessageEntity> textEntities) voidtoString()
-
Constructor Details
-
Game
public Game()
-
-
Method Details
-
getTitle
- Returns:
- Title of the game.
-
setTitle
- Parameters:
title- Title of the game.
-
getDescription
- Returns:
- Description of the game.
-
setDescription
- Parameters:
description- Description of the game.
-
getPhoto
- Returns:
- Photo that will be displayed in the game message in chats.
-
setPhoto
- Parameters:
photo- Photo that will be displayed in the game message in chats.
-
getText
- Returns:
- Brief description of the game or high scores included in the game message.
-
setText
- Parameters:
text- Brief description of the game or high scores included in the game message.
-
getTextEntities
- Returns:
- Special entities that appear in text, such as usernames, URLs, bot commands, etc.
-
setTextEntities
- Parameters:
textEntities- Special entities that appear in text, such as usernames, URLs, bot commands, etc.
-
getAnimation
- Returns:
- Animation that will be displayed in the game message in chats. Upload via BotFather.
-
setAnimation
- Parameters:
animation- Animation that will be displayed in the game message in chats. Upload via BotFather.
-
toString
-