TDLib
Loading...
Searching...
No Matches
updateSpeechRecognitionTrial Class Referencefinal

Inherits Update.

Description

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

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 updateSpeechRecognitionTrial ()
 updateSpeechRecognitionTrial (int32 max_media_duration_, int32 weekly_count_, int32 left_count_, int32 next_reset_date_)
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ updateSpeechRecognitionTrial() [1/2]

updateSpeechRecognitionTrial ( )

The parameters of speech recognition without Telegram Premium subscription have 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 have 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.

Member Function 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: