2018-04-14 16:46:54 +00:00
|
|
|
"""This example shows how to handle raw updates"""
|
|
|
|
|
2018-10-09 13:23:40 +00:00
|
|
|
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()
|