Sha256: 1602d2002e260e9a838068cb504aefa54256f898105679b40c64e090a33552a9
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
module TD::Types # Represents a remote file. # # @attr id [String, nil] Remote file identifier; may be empty. # Can be used across application restarts or even from other devices for the current user. # If the ID starts with "http://" or "https://", it represents the HTTP URL of the file. # TDLib is currently unable to download files if only their URL is known. # If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation # process by sending {TD::Types::Update::FileGenerationStart} to the client with the HTTP URL in the original_path and # "#url#" as the conversion string. # Clients should generate the file by downloading it to the specified location. # @attr is_uploading_active [Boolean] True, if the file is currently being uploaded (or a remote copy is being # generated by some other means). # @attr is_uploading_completed [Boolean] True, if a remote copy is fully available. # @attr uploaded_size [Integer] Size of the remote available part of the file; 0 if unknown. class RemoteFile < Base attribute :id, TD::Types::String.optional.default(nil) attribute :is_uploading_active, TD::Types::Bool attribute :is_uploading_completed, TD::Types::Bool attribute :uploaded_size, TD::Types::Integer end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tdlib-ruby-2.1.0 | lib/tdlib/types/remote_file.rb |
tdlib-ruby-2.0.0 | lib/tdlib/types/remote_file.rb |