t-bot
Upload files to your Telegram channel or group with your telegram bot
Features
- Progress bar
- You can change file name before upload on telegram
Note : Bot can upload only 50 MB file (with default telegram bot api server url).
Installation
pip3 install tl-bot
Usage
t-bot setup # setup your telegram credentials
t-bot setup --cahtid -1001234567890 --token 1234:asdfgjkl --server http://127.0.0.1:8081 # setup your telegram credentials
t-bot reset # reset to default your telegram credentials
t-bot test # test telegram bot token
t-bot getid # get chat id of your connected group or channel
t-bot up {file_name} -c file_caption # upload Telegram channel or group
t-bot d {url} -c caption # download and upload file to your Telegram channel or group
API
The anonfile-upload client is also usable through an API (for test integration, automation, etc)
tl_bot.test_token(bot_token)
from tl_bot import test_token
test_token(bot_token) # bot_token type str
tl_bot.uploader(bot_token: str, chat_id: str, file_name: str, server_url: str, caption: str)
from tl_bot import uploader
uploader(bot_token, chat_id, file_name, server_url, caption) # all arguments must be str
tl_bot.download(url:str, bot_token:str, chat_id:str, caption:str)
from tl_bot import download
download(url, bot_token, chat_id, caption) # all arguments must be str
Metadata
Release files for tl-bot 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tl_bot-0.1.4.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tl_bot-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / tl_bot-0.1.4.tar.gz
| Download URL | tl_bot-0.1.4.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c37752ffe8e058754f785d5122e075bba139658739dd965db1fea57af3d8c319
|
|
BLAKE2b-256 checksum How to use checksums |
7baed0e171c3589051d9c73ea0c45f0ba9c88d5ef84e38d1d94ee2bad6fef620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / tl_bot-0.1.4-py3-none-any.whl
| Download URL | tl_bot-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6295c1a1d8047f5211e38b6625eae34c631fb7ef3ee480fd53668e773cb298e4
|
|
BLAKE2b-256 checksum How to use checksums |
4531560dd25181cb44b901c17a6b7876f6f3cbfd7b51cd36d44b48d53f1c4b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|