MTPyroger/examples/raw_updates.py

14 lines
236 B
Python
Raw Permalink Normal View History

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