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::updateSpeedLimitNotification Class Referencefinal

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

Inheritance diagram for td::td_api::updateSpeedLimitNotification:
td::td_api::Update td::td_api::Object td::TlObject

Public Member Functions

 updateSpeedLimitNotification ()
 
 updateSpeedLimitNotification (bool is_upload_)
 
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

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.
 

Detailed 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 being downloaded or uploaded file is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium.

Definition at line 82225 of file td_api.h.

Constructor & Destructor Documentation

◆ updateSpeedLimitNotification() [1/2]

td::td_api::updateSpeedLimitNotification::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 being downloaded or uploaded file 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]

td::td_api::updateSpeedLimitNotification::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 being downloaded or uploaded file 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 td::td_api::updateSpeedLimitNotification::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

◆ ID

const std::int32_t td::td_api::updateSpeedLimitNotification::ID = -964437912
static

Identifier uniquely determining a type of the object.

Definition at line 82251 of file td_api.h.

◆ is_upload_

bool td::td_api::updateSpeedLimitNotification::is_upload_

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

Definition at line 82236 of file td_api.h.


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