Skip to main content

pyrotel is a library for telegram bots.

Project description

pyrotel 0.9.2v

pyrotel is a library for telegram bots.

Install and Update:

pip install pyrotel

START:

from pyrotel import Client
import asyncio

app = Client("API_TOKEN")

async def bot():
	for msg in app.on_message():
		if msg.text == "/start":
			app.send_message(msg.chat_id, "hello my dear.\nwelcome to my bot :)", reply_to_message_id=msg.message_id)

if __name__ == "__main__":
	asyncio.run(bot())

Social Media:

TELEGRAM
GITHUB

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

pyrotel-0.9.2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

pyrotel-0.9.2-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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