pyrofork/docs/source/start/examples/raw_updates.rst
wulan17 8353e5a2a2
Pyrofork: Full rebrand
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-06 04:41:59 +07:00

18 lines
310 B
ReStructuredText

raw_updates
===========
This example shows how to handle raw updates.
.. code-block:: python
from pyrofork 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()