Package org.drinkless.tdlib
Class TdApi.Game
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Game
-
- Enclosing class:
- TdApi
public static class TdApi.Game extends TdApi.Object
Describes a game.
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.AnimationanimationGame animation; may be null.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringdescriptionGame description.longidGame ID.TdApi.PhotophotoGame photo.StringshortNameGame short name.TdApi.FormattedTexttextGame text, usually containing scoreboards for a game.StringtitleGame title.
-
Constructor Summary
Constructors Constructor Description Game()Describes a game.Game(long id, String shortName, String title, TdApi.FormattedText text, String description, TdApi.Photo photo, TdApi.Animation animation)Describes a game.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
Game ID.
-
shortName
public String shortName
Game short name. To share a game use the URL https://t.me/{botUsername}?game={gameShortName}.
-
title
public String title
Game title.
-
text
public TdApi.FormattedText text
Game text, usually containing scoreboards for a game.
-
description
public String description
Game description.
-
photo
public TdApi.Photo photo
Game photo.
-
animation
public TdApi.Animation animation
Game animation; may be null.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Game
public Game()
Describes a game.
-
Game
public Game(long id, String shortName, String title, TdApi.FormattedText text, String description, TdApi.Photo photo, TdApi.Animation animation)Describes a game.- Parameters:
id- Game ID.shortName- Game short name. To share a game use the URL https://t.me/{botUsername}?game={gameShortName}.title- Game title.text- Game text, usually containing scoreboards for a game.description- Game description.photo- Game photo.animation- Game animation; may be null.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-