tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
6.91k stars 1.42k forks source link

How many uploadFiles do we receive for already uploaded files? #2860

Closed ng8weji9vowdv closed 4 months ago

levlam commented 4 months ago

All updates are correct. preliminaryUploadFile never completes upload of a file even all data is uploaded. You never need to use preliminaryUploadFile before sending it in a message if you have complete file beforehand.

levlam commented 4 months ago

Video and voice notes can be uploaded during recording without sending a message, and preliminaryUploadFile can be used for this.

See https://github.com/tdlib/td/issues/126 for examples of inputFileGenerated usage.