Skip to main content

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

Project description

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.main.test_token(bot_token)

from tele_upload.main import test_token

test_token(bot_token)   # bot_token type str

tele_upload.main.uploadd_file(bot_token, chat_id, file_name)

from tele_upload.main import uploadd_file

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tele-upload-0.0.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

tele_upload-0.0.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page