Skip to main content

Telegram Bot API Python wrapper.

Project description

This is a Python wrapper for Telegram Bot API.

Quickstart

Install

pip install telebot7

Usage

>>> from telebot7 import TeleBot
>>> from telebot7.long_polling import get_updates
>>>
>>> token = '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'
>>> tele_bot = TeleBot(token)
>>>
>>> print(tele_bot.getMe())
>>>
>>> def on_updates(updates):
...    print(updates)
...
>>> get_updates(tele_bot, on_updates, timeout=10)

See https://core.telegram.org/bots/api for detailed API guide.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

telebot7-0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file telebot7-0.1.tar.gz.

File metadata

  • Download URL: telebot7-0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for telebot7-0.1.tar.gz
Algorithm Hash digest
SHA256 2c526bf61bc25a350d3b98962024e4417b4c8bebfb54b1639164aa6fa1aefd13
MD5 30cf39d68f781fd7cf7daae681379260
BLAKE2b-256 104aedb0eff38ca371495be1bb454cd6a28892d3266c26d0552ea3fce696b842

See more details on using hashes here.

Supported by

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