lib/tdlib/client_methods.rb
def upload_file(file:, file_type:, priority:)
    broadcast('@type'     => 'uploadFile',
              'file'      => file,
              'file_type' => file_type,
              'priority'  => priority)
  end
# Asynchronously uploads a file to the cloud without sending it in a message.
# updateFile will be used to notify about upload progress and successful completion of the upload.
# The file will not have a persistent remote identifier until it will be sent in a message.
#
# @param file [TD::Types::InputFile] File to upload.
# @param file_type [TD::Types::FileType] File type; pass null if unknown.
# @param priority [Integer] Priority of the upload (1-32).
#   The higher the priority, the earlier the file will be uploaded.
#   If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded
#   first.
# @return [TD::Types::File]
Asynchronously uploads a file to the cloud without sending it in a message.
updateFile will be used to notify about upload progress and successful completion of the upload.
The file will not have a persistent remote identifier until it will be sent in a message.
Asynchronously uploads a file to the cloud without sending it in a message . updateFile will be used to notify about upload progress and successful completion of the upload . The file will not have a persistent remote identifier until it will be sent in a message .
def upload_file(file:, file_type:, priority:)
    broadcast('@type'     => 'uploadFile',
              'file'      => file,
              'file_type' => file_type,
              'priority'  => priority)
  end
def upload_file ( file : , file_type : , priority : ) broadcast ( '@type' => 'uploadFile' , 'file' => file , 'file_type' => file_type , 'priority' => priority ) end
Asynchronously uploads a file to the cloud without sending it in a message.
Asynchronously uploads a file to the cloud without sending it in a message .
None
TD::Types::File
file
File to upload.
File to upload .
file_type
File type; pass null if unknown.
File type ; pass null if unknown .
priority
Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which uploadFile was called will be uploaded first.
Priority of the upload ( 1 - 32 ) . The higher the priority the earlier the file will be uploaded . If the priorities of two files are equal then the first one for which uploadFile was called will be uploaded first .