tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::inputMessageStakeDice Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::inputMessageStakeDice:
td::td_api::InputMessageContent td::td_api::Object td::TlObject

Public Member Functions

 inputMessageStakeDice ()
 
 inputMessageStakeDice (string const &state_hash_, int53 stake_toncoin_amount_, bool clear_draft_)
 
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

string state_hash_
 Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.
 
int53 stake_toncoin_amount_
 The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").
 
bool clear_draft_
 True, if the chat message draft must be deleted.
 

Static Public Attributes

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

Detailed Description

A stake dice message.

Definition at line 29892 of file td_api.h.

Constructor & Destructor Documentation

◆ inputMessageStakeDice() [1/2]

td::td_api::inputMessageStakeDice::inputMessageStakeDice ( )

A stake dice message.

◆ inputMessageStakeDice() [2/2]

td::td_api::inputMessageStakeDice::inputMessageStakeDice ( string const &  state_hash_,
int53  stake_toncoin_amount_,
bool  clear_draft_ 
)

A stake dice message.

Parameters
[in]state_hash_Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.
[in]stake_toncoin_amount_The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").
[in]clear_draft_True, if the chat message draft must be deleted.

Member Function Documentation

◆ store()

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

Member Data Documentation

◆ clear_draft_

bool td::td_api::inputMessageStakeDice::clear_draft_

True, if the chat message draft must be deleted.

Definition at line 29907 of file td_api.h.

◆ ID

const std::int32_t td::td_api::inputMessageStakeDice::ID = 1946603673
static

Identifier uniquely determining a type of the object.

Definition at line 29924 of file td_api.h.

◆ stake_toncoin_amount_

int53 td::td_api::inputMessageStakeDice::stake_toncoin_amount_

The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").

Definition at line 29905 of file td_api.h.

◆ state_hash_

string td::td_api::inputMessageStakeDice::state_hash_

Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.

Definition at line 29903 of file td_api.h.


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