pyrofork/docs/source/start/examples/raw_updates.rst
wulan17 d91b933715
PyroFork: Bring back docs
Signed-off-by: wulan17 <galihgustip@gmail.com>
2023-01-02 15:04:23 +07:00

18 lines
310 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()
async def raw(client, update, users, chats):
print(update)
app.run() # Automatically start() and idle()