hydrogram/docs/source/start/examples/raw_updates.rst at stable · hydrogram/hydrogram · GitHub
Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 311 Bytes

File metadata and controls

18 lines (10 loc) · 311 Bytes

raw_updates

This example shows how to handle raw updates.

from hydrogram 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()