Skip to main content

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

Project description

t-bot

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 (with default telegram bot api server url)

Installation

pip3 install tl-bot

Usage

t-bot setup               # 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.main.test_token(bot_token)

from tl_bot.main import test_token

test_token(bot_token)   # bot_token type str

tl_bot.main.uploader(bot_token: str, chat_id: str, file_name: str, server_url: str, caption: str)

from tl_bot.main import uploader

uploader(bot_token, chat_id, file_name, server_url, caption)    # all arguments must be str

tl_bot.main.download(url:str, bot_token:str, chat_id:str, caption:str)

from tl_bot.main import download

download(url, bot_token, chat_id, caption)    # 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

tl-bot-0.0.8.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

tl_bot-0.0.8-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file tl-bot-0.0.8.tar.gz.

File metadata

  • Download URL: tl-bot-0.0.8.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for tl-bot-0.0.8.tar.gz
Algorithm Hash digest
SHA256 d432dd03700bff7f163d3520f64cc81cd4898e26dc067da7c5cd7e5c3011f8c0
MD5 1811ca3857dd29b955379e67dab44307
BLAKE2b-256 ff60cbcb0734ad0b148783b7aafe5e5e9105289341cb140e1ea43072f09240ef

See more details on using hashes here.

Provenance

File details

Details for the file tl_bot-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: tl_bot-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for tl_bot-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8e1e64bd0732130756fcec5d5c68a1bb2aec61c74eeda06c20cd98dd793eb10e
MD5 c58a572dca8917a42b4da3b7f1431ae1
BLAKE2b-256 c1b36884cc098d8129166b9db75f621b4666920ec12c299dabee6237a4e85a43

See more details on using hashes here.

Provenance

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