Class: TD::Types::Update::SpeedLimitNotification

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/speed_limit_notification.rb

Overview

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.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_uploadBoolean

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

Returns:

  • (Boolean)

    the current value of is_upload



8
9
10
# File 'lib/tdlib/types/update/speed_limit_notification.rb', line 8

def is_upload
  @is_upload
end