mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 17:09:05 +00:00
19 lines
304 B
ReStructuredText
19 lines
304 B
ReStructuredText
|
raw_updates
|
||
|
===========
|
||
|
|
||
|
This example shows how to handle raw updates.
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
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()
|