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.4.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pyro_listener-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27fd3045287abd119a50be85b61ed9d91be7a5b5923fe0a3f49a274a5cf5299 |
|
MD5 | 855d380318040a60e4402ea64298367d |
|
BLAKE2b-256 | 0dc9e181afabcd192fca53b6a975b840da3eb0c0cafa9cb0f736d5d3a1b23831 |