struct

Telegram::TelegramFile

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: File This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.

Constructors

new(file_id : String, file_unique_id : String, file_size : Int64 | Nil = nil, file_path : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(file_id _file_id = @file_id, file_unique_id _file_unique_id = @file_unique_id, file_size _file_size = @file_size, file_path _file_path = @file_path)
Source
file_id
file_path
file_size
file_unique_id