List of all members | Public Fields | Public Instance Methods | Static Public Attributes
game Class Referencefinal

Inherits Object.

Description

Describes a game.

Public Fields

int64 id_
 Game ID.
 
string short_name_
 Game short name. To share a game use the URL https://t.me/{bot_username}?game={game_short_name}.
 
string title_
 Game title.
 
object_ptr< formattedTexttext_
 Game text, usually containing scoreboards for a game.
 
string description_
 Game description.
 
object_ptr< photophoto_
 Game photo.
 
object_ptr< animationanimation_
 Game animation; may be null.
 

Public Instance Methods

 game ()
 
 game (int64 id_, string const &short_name_, string const &title_, object_ptr< formattedText > &&text_, string const &description_, object_ptr< photo > &&photo_, object_ptr< animation > &&animation_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -1565597752
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ game() [1/2]

game ( )

Describes a game.

◆ game() [2/2]

game ( int64  id_,
string const &  short_name_,
string const &  title_,
object_ptr< formattedText > &&  text_,
string const &  description_,
object_ptr< photo > &&  photo_,
object_ptr< animation > &&  animation_ 
)

Describes a game.

Parameters
[in]id_Game ID.
[in]short_name_Game short name. To share a game use the URL https://t.me/{bot_username}?game={game_short_name}.
[in]title_Game title.
[in]text_Game text, usually containing scoreboards for a game.
[in]description_Game description.
[in]photo_Game photo.
[in]animation_Game animation; may be null.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: