TDLib
Loading...
Searching...
No Matches
td::td_api::messageDice Class Referencefinal

Inherits td::td_api::MessageContent.

Public Member Functions

 messageDice ()
 
 messageDice (object_ptr< DiceStickers > &&initial_state_, object_ptr< DiceStickers > &&final_state_, string const &emoji_, int32 value_, int32 success_animation_frame_number_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

object_ptr< DiceStickersinitial_state_
 The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
 
object_ptr< DiceStickersfinal_state_
 The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
 
string emoji_
 Emoji on which the dice throw animation is based.
 
int32 value_
 The dice value. If the value is 0, the dice don't have final state yet.
 
int32 success_animation_frame_number_
 Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
 

Static Public Attributes

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

Detailed Description

A dice message. The dice value is randomly generated by the server.

Constructor & Destructor Documentation

◆ messageDice() [1/2]

td::td_api::messageDice::messageDice ( )

A dice message. The dice value is randomly generated by the server.

◆ messageDice() [2/2]

td::td_api::messageDice::messageDice ( object_ptr< DiceStickers > &&  initial_state_,
object_ptr< DiceStickers > &&  final_state_,
string const &  emoji_,
int32  value_,
int32  success_animation_frame_number_ 
)

A dice message. The dice value is randomly generated by the server.

Parameters
[in]initial_state_The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
[in]final_state_The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
[in]emoji_Emoji on which the dice throw animation is based.
[in]value_The dice value. If the value is 0, the dice don't have final state yet.
[in]success_animation_frame_number_Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::messageDice::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::messageDice::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 td::TlObject.


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