Download and upload files via telegram up to 1.5GB, CLI
Telegram-cloud (A.K.A tgcloud)
telegram-cloud - Download and upload files via telegram, Use your telegram account as a free cloud storage.
Uploader, Downloader, Crawler, Bot 50MB limitation bypasser.
- Upload file upto 1.5GB
- Download file from every conversation, group, channel, ...
- Crawling! search by name or caption for a specific file to download it
You can also:
- Use it for multiple accounts, download from one Telegram account and upload that on another account, there is no difficulty
- download files with file_id
This text you see here is actually written in Markdown! To get a feel for Markdown's syntax, type some text into the left window and watch the results in the right.
Hmm what is this?
It's a python library for Telegram messenger, which can give you an ability to download, upload, and more options to do with your Telegram account on CLI.
Install the dependencies.
$ pip3 install -r requirements.txt
How can I use it?
- install the package by pip package manager.
- after installing, type 'tglogin' on your terminal
- Now you need to get api_id and api_hash from here Telegram
from Telethon document:
Before working with Telegram’s API, you need to get your own API ID and hash: Login to your Telegram account with the phone number of the developer account to use. Click under API Development tools. A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later. Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!
- After that you able to call 'tgcloud' on your terminal.
telegram-cloud is currently working with the following commands.
|--mode / -m||Two modes for specify what you want, Available modes: download - upload|
|--name / -n||A Name you choose while tglogin-ing and use for specify the current user you work on it|
|--username / -u||Target username that you want to send file, type 'me' if you want to get it on your 'saved messages'|
|--path / -p||For download mode: pass simple directory path like "/Users/nima/Desktop/Iwanttoescapefrom/"|
|--path / -p||For upload mode: pass file path like "/Users/nima/Desktop/Iwanttoescapefrom/Iran.zip"|
|--caption / -c||For download mode: pass the name of file or caption to crawl and download|
|--caption / -c||For upload mode: write the caption to see it under your file|
Need more examples?
Download a music from my saved messages and save it on /Users/nima/Desktop/:
$ tgcloud -m download -n nima -u me -p "/Users/nima/Desktop/" -c "sad but true"
$ tgcloud --mode download --name nima --username me --path "/Users/nima/Desktop/" --caption "sad but true"
Upload a banner with caption to my saved messages :
$ tgcloud --mode upload --name nima --username me --path "/Users/nima/Desktop/banner.png" --caption "Help me"
Upload a pdf to an telegram ID :
$ tgcloud -m upload -n nima -u @autisticbruh -p "/Users/nima/Desktop/file.pdf" -c "Help me"
Search and download a zip from telegram chat_id group :
$ tgcloud -m download -n nima -u -1001240213443 -p "/Users/nima/Desktop/" -c "best memes"
What is file_id?
from Telegram Doc:
When working with the API, it is sometimes necessary to send a relatively large file to the server. For example, when sending a message with a photo/video attachment or when setting the current user’s profile picture.
You can upload a file to Telegram once, and send it again to others or do things with file_id. So when you upload a file, you can see the file_id. So now what? If you have a Telegram bot and you have 50MB limitation for uploading and send to users, you can bypass this limitation by this trick and upload files upto 1.5GB and pass it by file_id or message_id or...
- Upload and download multiple files
- Upload and download a directory
- Make compatible with windows
Feel free to submit issues and enhancement requests.
Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Python + Telethon
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size telegram_cloud-1.0.3-py3-none-any.whl (7.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size telegram-cloud-1.0.3.tar.gz (5.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for telegram_cloud-1.0.3-py3-none-any.whl