https://github.com/jakbin/t-bot
upload files to your telegram channel or group with ypur telegram bot
https://github.com/jakbin/t-bot
bot telegram telegram-bot telegram-bot-api telegram-upload telegram-uploader upload-file
Last synced: 10 months ago
JSON representation
upload files to your telegram channel or group with ypur telegram bot
- Host: GitHub
- URL: https://github.com/jakbin/t-bot
- Owner: jakbin
- License: mit
- Created: 2022-11-02T09:44:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-28T14:40:13.000Z (11 months ago)
- Last Synced: 2025-07-28T14:52:17.648Z (11 months ago)
- Topics: bot, telegram, telegram-bot, telegram-bot-api, telegram-upload, telegram-uploader, upload-file
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# t-bot
Upload files to your Telegram channel or group with your telegram bot
[](https://pypi.org/project/tl-bot/)
[](https://pepy.tech/project/tl-bot)
[](https://pepy.tech/project/tl-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
```sh
pip3 install tl-bot
```
## Usage
```sh
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)
```py
from tl_bot import test_token
test_token(bot_token) # bot_token type str
```
### tl_bot.uploader(file_name: str, server_url: str, bot_token: str, chat_id: str, caption: str)
```py
from tl_bot import uploader
uploader(file_name, server_url, bot_token, chat_id, caption) # all arguments must be str
```
### tl_bot.download(url:str, bot_token:str, chat_id:str, caption:str)
```py
from tl_bot import download
download(url, bot_token, chat_id, caption) # all arguments must be str
```