Add game type documentation

bot-api-6.1
Ilya Kaznacheev 2020-10-24 17:00:46 +03:00
parent d2ea97fb9b
commit 5875a46cde
No known key found for this signature in database
GPG Key ID: 7E2C1D8A4AB37D50
1 changed files with 20 additions and 5 deletions

View File

@ -1019,11 +1019,26 @@ func (chat ChatMember) WasKicked() bool { return chat.Status == "kicked" }
// Game is a game within Telegram.
type Game struct {
// Title of the game
Title string `json:"title"`
// Description of the game
Description string `json:"description"`
// Photo that will be displayed in the game message in chats.
Photo []PhotoSize `json:"photo"`
// Text a 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.
//
// optional
Text string `json:"text"`
// TextEntities special entities that appear in text, such as usernames, URLs, bot commands, etc.
//
// optional
TextEntities []MessageEntity `json:"text_entities"`
// Animation animation that will be displayed in the game message in chats.
// Upload via BotFather (https://t.me/botfather).
//
// optional
Animation Animation `json:"animation"`
}