2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Update examples

This commit is contained in:
Dan
2018-05-06 11:56:25 +02:00
parent ef9ce19a8b
commit b35b1a8e74
8 changed files with 32 additions and 16 deletions

View File

@@ -1,6 +1,11 @@
from pyrogram import Client, Filters
"""This simple echo bot replies to every private text message"""
"""This simple echo bot replies to every private text message.
It uses the @on_message decorator to register a MessageHandler
and applies two filters on it, Filters.text and Filters.private to make
sure it will only reply to private text messages.
"""
app = Client("my_account")