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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_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)
Sourcefile_id
file_path
file_size
file_unique_id