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
-
Method Summary
Modifier and TypeMethodDescription@Nullable Animation
@NonNull String
getPhoto()
@Nullable String
getText()
@Nullable List<MessageEntity>
@NonNull String
getTitle()
void
setAnimation
(@Nullable Animation animation) void
setDescription
(@NonNull String description) void
void
void
setTextEntities
(@Nullable List<MessageEntity> textEntities) void
toString()
-
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
-