How to download media to AWS S3 - telethon

How can we use the download_media() function to download the file directly to AWS S3 bucket?
Let's say that I have a bucket called telegram_files and the prefix for my S3 object istelegram/channel/ and I want to download the media to that bucket and in the end the file is save to S3 object telegram/channel/downloaded_file. How do I do this?

Related

What are the file types supported in amazon s3?

I want to upload dat,txt,xlsx files to amazon s3 bucket, Are these files supported in Amazon s3?
Yes. Any type of file can be uploaded and stored in Amazon S3.

Can someone make my AWS S3 bill explode?

If I have some file uploaded on AWS S3 and it has a public url, can someone make my AWS bill explode by automatically downloading this file over and over again?

Upload a file in s3 to another server using aws lambda

I want to read a file from s3 and upload it as a multipart object to another server using an aws lambda(java). What is the best possible way to do this?

How to change default permission for files on amazon s3

I am using amazon s3 for storing files
Every time when I upload file to amazon I change file permission.
How customize default amazon s3 permission?

Is it possible to add files to Amazon S3 buckets using web URL as source?

I am trying to load one of my S3 buckets.
File i am trying to load is huge tarball on the web, I don't want to download file on my disk and then again start uploading it to S3 bucket.
is there any way that I can directly specify this URL and it get added to S3 ?
You have to "put" to S3, and it does not "get".