mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
14 lines
236 B
Python
14 lines
236 B
Python
"""This example shows how to handle raw updates"""
|
|
|
|
from pyrogram import Client
|
|
|
|
app = Client("my_account")
|
|
|
|
|
|
@app.on_raw_update()
|
|
def raw(client, update, users, chats):
|
|
print(update)
|
|
|
|
|
|
app.run() # Automatically start() and idle()
|