As far as I know, you can send to the file to telegram not only with file_id or URL link to the file.
To send binary data according to the documentation, you need to use InputFile.
InputFile This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
@a1ekseev
Please consider these options: MinIO and Wasabi.
They both use S3 compatible API but MinIO is self hosted and Wasabi.com is about 80% cheaper than S3! with free egress. At last look Itās $5.99/TB/m
Wasabi is fantastic and super fast, MinIO is easy to setup and I believe Linode (and other providers) have one-click options for it, as well as their own S3 type storage called Object Storage (and an API).