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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pyro_listener-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f815232168970e625a6201fc29cd58d31aad6100b2966d3aebbce67789514ea |
|
MD5 | e7e223cabd7c75e42c3742c8811858be |
|
BLAKE2b-256 | 39c0579b97c49651feb8b77d5dbbaaab424f4d4f81935cd73389a8b5321e3714 |