Class TdApi.Game

  • Enclosing class:
    TdApi

    public static class TdApi.Game
    extends TdApi.Object
    Describes a game.
    • Field Detail

      • id

        public long id
        Game ID.
      • shortName

        public java.lang.String shortName
        Game short name. To share a game use the URL https://t.me/{botUsername}?game={gameShortName}.
      • title

        public java.lang.String title
        Game title.
      • description

        public java.lang.String description
        Game description.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Game

        public Game()
        Default constructor.
      • Game

        public Game​(long id,
                    java.lang.String shortName,
                    java.lang.String title,
                    TdApi.FormattedText text,
                    java.lang.String description,
                    TdApi.Photo photo,
                    TdApi.Animation animation)
        Constructor for initialization of all fields.
        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.