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

Inherits Update.

Description

The parameters of speech recognition without Telegram Premium subscription has changed.

Public Fields

int32 max_media_duration_
 The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds.
 
int32 weekly_count_
 The total number of allowed speech recognitions per week; 0 if none.
 
int32 left_count_
 Number of left speech recognition attempts this week.
 
int32 next_reset_date_
 Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown.
 

Public Instance Methods

 updateSpeechRecognitionTrial ()
 
 updateSpeechRecognitionTrial (int32 max_media_duration_, int32 weekly_count_, int32 left_count_, int32 next_reset_date_)
 
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 = -11600703
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ updateSpeechRecognitionTrial() [1/2]

The parameters of speech recognition without Telegram Premium subscription has changed.

◆ updateSpeechRecognitionTrial() [2/2]

updateSpeechRecognitionTrial ( int32  max_media_duration_,
int32  weekly_count_,
int32  left_count_,
int32  next_reset_date_ 
)

The parameters of speech recognition without Telegram Premium subscription has changed.

Parameters
[in]max_media_duration_The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds.
[in]weekly_count_The total number of allowed speech recognitions per week; 0 if none.
[in]left_count_Number of left speech recognition attempts this week.
[in]next_reset_date_Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown.

Method Documentation

◆ 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: