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

Inherits Object.

Description

Contains information about public post search limits.

Public Member Functions

 publicPostSearchLimits ()
 publicPostSearchLimits (int32 daily_free_query_count_, int32 remaining_free_query_count_, int32 next_free_query_in_, int53 star_count_, bool is_current_query_free_)
void store (TlStorerToString &s, const char *field_name) const final
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 daily_free_query_count_
 Number of queries that can be sent daily for free.
bool is_current_query_free_
 True, if the search for the specified query isn't charged.
int32 next_free_query_in_
 Amount of time till the next free query can be sent; 0 if it can be sent now.
int32 remaining_free_query_count_
 Number of remaining free queries today.
int53 star_count_
 Number of Telegram Stars that must be paid for each non-free query.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ publicPostSearchLimits() [1/2]

publicPostSearchLimits ( )

Contains information about public post search limits.

◆ publicPostSearchLimits() [2/2]

publicPostSearchLimits ( int32 daily_free_query_count_,
int32 remaining_free_query_count_,
int32 next_free_query_in_,
int53 star_count_,
bool is_current_query_free_ )

Contains information about public post search limits.

Parameters
[in]daily_free_query_count_Number of queries that can be sent daily for free.
[in]remaining_free_query_count_Number of remaining free queries today.
[in]next_free_query_in_Amount of time till the next free query can be sent; 0 if it can be sent now.
[in]star_count_Number of Telegram Stars that must be paid for each non-free query.
[in]is_current_query_free_True, if the search for the specified query isn't charged.

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: