Class TdApi.UpdateSpeedLimitNotification
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Update
dev.voroby.springframework.telegram.client.TdApi.UpdateSpeedLimitNotification
- Enclosing class:
- TdApi
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if upload speed was limited; false, if download speed was limited. -
Constructor Summary
ConstructorDescriptionDownload or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium.UpdateSpeedLimitNotification
(boolean isUpload) Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
isUpload
public boolean isUploadTrue, if upload speed was limited; false, if download speed was limited. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpdateSpeedLimitNotification
public 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
public UpdateSpeedLimitNotification(boolean isUpload) 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:
isUpload
- True, if upload speed was limited; false, if download speed was limited.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-