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.uploadd_file(bot_token, chat_id, file_name, caption)

from tl_bot.main import uploadd_file

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

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

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.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tl-bot-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9d8a6058e7c4d293ebdd77acf31f63d74b90097b89ab21210a56304eb8cb8515
MD5 ae4a5015858c1df9f361937497e4c55f
BLAKE2b-256 799411e5a822cc1b1d72bda7be5052aa1893e243b2de7f5d1c1a67e328fdce52

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tl_bot-0.0.6-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.11.1

File hashes

Hashes for tl_bot-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b577b9658e7a17e9654737d53682bbac8f27aefa999a78a1d3817015280d4a67
MD5 5f72e8980192109b205731baa72ec629
BLAKE2b-256 eb85d0ab4218612be79711fecf1c92db214ba4185292169f37bc1a3495e326a5

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