/Telezon-S3

Telezon S3 is a storage service that implements Amazon S3-compatible API using Telegram as the storage backend. It allows you to store and retrieve files using standard S3 clients while leveraging Telegram's infrastructure for actual file storage.

Primary LanguagePythonMIT LicenseMIT

Telezon S3

Deploy your server

Working in this documentation ...


Client example

Python - Boto3

import boto3

access_key_id = 'your_access_key_id'
secret_key = 'your_secret_key'

telezon_s3_url = 'https://your-instance.herokuapp.com'

s3 = boto3.client(
    's3', 
    aws_access_key_id=access_key_id, 
    aws_secret_access_key=secret_key, 
    endpoint_url=telezon_s3_url
)

s3.upload_file('filename_example.jpg', 'bucket_name', 'id_name_for_file')

s3.download_file('bucket_name', 'id_name_for_file', 'downloaded_filename.jpg')