tl-bot

upload files to your telegram channel or group with your telegram bot


Keywords
telegram, t-bot, telegram-api, telegram-api-bot, telegram-file-upload, elegram-upload
License
MIT
Install
pip install tl-bot==0.0.9

Documentation

Tele-Upload

Upload files to your Telegram channel or group with your telegram bot

PyPI version Downloads Downloads GitHub Contributors GitHub commit activity GitHub last commit Python 3.6

Features

  • Progress bar
  • You can change file name before upload on telegram

Note : Bot can upload only 50 MB file

Installation

pip3 install tele-upload

Usage

tele-upload setup                   # setup your telegram credentials
tele-upload reset                   # reset to default your telegram credentials
tele-upload test                    # test telegram bot token
tele-upload up {file_name}          # upload Telegram channel or group
tele-upload d {url}                 # download and upload Telegram channel or group

API

The anonfile-upload client is also usable through an API (for test integration, automation, etc)

tele_upload.test_token(bot_token)

from tele_upload import test_token

test_token(bot_token)   # bot_token type str

tele_upload.uploadd_file(bot_token, chat_id, file_name)

from tele_upload import uploadd_file

uploadd_file(bot_token, chat_id, file_name)    # all arguments must be str