pyrogram/examples/raw_update_handler.py

15 lines
213 B
Python
Raw Normal View History

2018-04-14 16:46:54 +00:00
from pyrogram import Client
"""This example shows how to handle raw updates"""
app = Client("my_account")
@app.on_raw_update()
def raw(client, update, users, chats):
print(update)
app.start()
app.idle()