pyrogram/examples/raw_update_handler.py
Dan fd306c383d Remove LGPLv3 license notices from example files
Examples are licensed under the terms of CC0 1.0 Universal License
2018-10-09 15:21:36 +02:00

14 lines
236 B
Python

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.run() # Automatically start() and idle()