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
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 hashes)