I'm using sendMessage API to send photo that updated to s3 and using the link for tdlib to send. Due to existing architecture, we would rather not use local file. However, 20-30% of the time, tdlib failed to send the message and gave us a hint in log level 5. I would like to hear your feedback why it failed. Our best guess is the photo on S3 is not available at the time we sent but we crossed out that case 1) S3 is strongly consistent, 2) We add delay 3s after upload. 3) We get the photo after upload. However, tdlib still can't send with that remote photo URL.
Photos sent by URL are downloaded server-side. The error means that file download has failed, or the image doesn't satisfy requirements described in sendPhoto documentation.
I'm using sendMessage API to send photo that updated to s3 and using the link for tdlib to send. Due to existing architecture, we would rather not use local file. However, 20-30% of the time, tdlib failed to send the message and gave us a hint in log level 5. I would like to hear your feedback why it failed. Our best guess is the photo on S3 is not available at the time we sent but we crossed out that case 1) S3 is strongly consistent, 2) We add delay 3s after upload. 3) We get the photo after upload. However, tdlib still can't send with that remote photo URL.