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.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pyro_listener-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57120e4de91a58d99bc9ef1accc7c1e5d9482ab92ea5fa0500833c638199e6cf |
|
MD5 | 159bc411acd4a6b227d4ea37eacdc896 |
|
BLAKE2b-256 | be8b82085251a46fd7c750fd15c435c9f3eba2e7fcfde81a186bd41f3138de96 |