2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-22 09:57:19 +00:00
pyrogram/docs/source/start/examples/raw_updates.rst

19 lines
310 B
ReStructuredText
Raw Normal View History

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()
2022-04-24 11:56:07 +02:00
async def raw(client, update, users, chats):
print(update)
app.run() # Automatically start() and idle()