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

Inherits Update.

Description

Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a file being downloaded or uploaded is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 updateSpeedLimitNotification ()
 updateSpeedLimitNotification (bool is_upload_)
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

bool is_upload_
 True, if upload speed was limited; false, if download speed was limited.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ updateSpeedLimitNotification() [1/2]

updateSpeedLimitNotification ( )

Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a file being downloaded or uploaded is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium.

◆ updateSpeedLimitNotification() [2/2]

updateSpeedLimitNotification ( bool is_upload_)
explicit

Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a file being downloaded or uploaded is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium.

Parameters
[in]is_upload_True, if upload speed was limited; false, if download speed was limited.

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: