![]() Upload.saveFilePart#b304a621 file_id: long file_part: int bytes: bytes = Bool Photos.uploadProfilePhoto#89f30f69 flags: # file:flags.0? InputFile video:flags.1? InputFile video_start_ts:flags.2? double = photos.Photo ndEncryptedFile#5559481d flags: # silent:flags.0? true peer: InputEncryptedChat random_id: long data: bytes file: InputEncryptedFile = messages.SentEncryptedMessage Messages.uploadMedia#519bc2b1 peer: InputPeer media: InputMedia = MessageMedia ndMedia#e25ff8e0 flags: # silent:flags.5? true background:flags.6? true clear_draft:flags.7? true noforwards:flags.14? true peer: InputPeer reply_to_msg_id:flags.0? int media: InputMedia message: string random_id: long reply_markup:flags.2? ReplyMarkup entities:flags.3? Vector schedule_date:flags.10? int send_as:flags.13? InputPeer = Updates InputChatUploadedPhoto#c642724e flags: # file:flags.0? InputFile video:flags.1? InputFile video_start_ts:flags.2? double = InputChatPhoto InputMediaUploadedDocument#5b38c6c1 flags: # nosound_video:flags.3? true force_file:flags.4? true file: InputFile thumb:flags.2? InputFile mime_type: string attributes: Vector stickers:flags.0? Vector ttl_seconds:flags.1? int = InputMedia InputMediaUploadedPhoto#1e287d04 flags: # file: InputFile stickers:flags.0? Vector ttl_seconds:flags.1? int = InputMedia InputSecureFile#5367e5be id: long access_hash: long = InputSecureFile InputSecureFileUploaded#3334b0f0 id: long parts: int md5_checksum: string file_hash: bytes secret: bytes = InputSecureFile InputEncryptedFileBigUploaded#2dc173c8 id: long parts: int key_fingerprint: int = InputEncryptedFile InputEncryptedFileUploaded#64bd0306 id: long parts: int md5_checksum: string key_fingerprint: int = InputEncryptedFile InputFileBig#fa4f0bb5 id: long parts: int name: string = InputFile The schema of the types and methods used is presented below: inputFile#f52ff27f id: long parts: int name: string md5_checksum: string = InputFile There are a number of API methods to save files. For example, when sending a message with a photo/video attachment or when setting the current user's profile picture. When working with the API, it is sometimes necessary to send a relatively large file to the server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |