Skip to main content

Telegram api library in python

Project description

Telezhka

pypi

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 "text" in event:
		if event["text"] == "/hello":
			api.sendMessage(text="Hello", chat_id=event["chat"]["id"])

Project details


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.5.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

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