Pyrogram listener
Project description
Pyrogram listener
Examples
•
News
Pyrolistener
Example
from pyrogram import Client, filters, types, idle
from pyrolistener import Listener
app = Client("name")
app.start()
listener = Listener(client=app, show_output=True)
@app.on_message(filters.command("start"))
async def _(c: Client, m: types.Message):
msg = await listener.listen_to(m, "What's your name?", filters=["text"])
return await msg.reply(f"Your name is {msg.text}")
print("run")
idle()
Installing
pip3 install -U pyro-listener
Community
- Join the telegram channel: https://t.me/Y88F8
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
pyro-listener-1.3.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pyro_listener-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818fbb341f80f9504ddb90084324a36c17b29c6c4264090b1e2ded8efb988f55 |
|
MD5 | ee60588bd875c0167ccbbf3fe63fede0 |
|
BLAKE2b-256 | 1f562a219e8a6871c76f75cb9e7fe6110d98de264c3af0971847255f77ab7c4e |