Skip to main content

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

This version

0.2

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lullaby-0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for lullaby-0.2.tar.gz
Algorithm Hash digest
SHA256 ba80180b2ab3e9720d2ba14e6df84cb427138f4d6f65e8aa9e45ac66c3a86240
MD5 a5199ba786af6841a20144a227df01ce
BLAKE2b-256 e9773cc725b9bda696e6e24c980d2dd80dac8f66d58ee804b3989b6ef51da018

See more details on using hashes here.

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

Hashes for lullaby-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eef5907edf6e659d134351c4580a798fa066be26a18950728404fda7aedf4e5e
MD5 000609d361d1563e24ca280bde4bae8f
BLAKE2b-256 aaae82b1f68aa75f73c3835e556b8145ffb40eefef3f80ef16c65d5531689b37

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