Telegram Bot API Python wrapper.
Project description
This is a Python wrapper for Telegram Bot API.
Quickstart
Install
pip install lullaby
Usage
>>> from lullaby import Lullaby
>>> from lullaby.long_polling import get_updates
>>>
>>> token = '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'
>>> lullaby_bot = Lullaby(token)
>>>
>>> print(lullaby_bot.getMe())
>>>
>>> def on_updates(updates):
... print(updates)
...
>>> get_updates(lullaby_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
lullaby-0.2.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lullaby-0.2-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file lullaby-0.2.tar.gz.
File metadata
- Download URL: lullaby-0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba80180b2ab3e9720d2ba14e6df84cb427138f4d6f65e8aa9e45ac66c3a86240
|
|
| MD5 |
a5199ba786af6841a20144a227df01ce
|
|
| BLAKE2b-256 |
e9773cc725b9bda696e6e24c980d2dd80dac8f66d58ee804b3989b6ef51da018
|
File details
Details for the file lullaby-0.2-py3-none-any.whl.
File metadata
- Download URL: lullaby-0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef5907edf6e659d134351c4580a798fa066be26a18950728404fda7aedf4e5e
|
|
| MD5 |
000609d361d1563e24ca280bde4bae8f
|
|
| BLAKE2b-256 |
aaae82b1f68aa75f73c3835e556b8145ffb40eefef3f80ef16c65d5531689b37
|