Telegram api library in python
Project description
Telezhka
Telegram api library in python
Installation:
pip install --upgrade Telezhka
Simple bot:
from Telezhka import *
api = Telegram("883304628:ONTB4H2SAMPLEtext9m0g")
for event in api.listen():
if "message" in event and "text" in event["message"]:
if event["message"]["text"] == "/hello":
api.sendMessage(text="Hello", chat_id=event["message"]["chat"]["id"])
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
Telezhka-0.0.9.tar.gz
(2.2 kB
view hashes)