Skip to content

Reacting to messages

Filippo Romani edited this page Sep 13, 2024 · 2 revisions

Use this method to mark a previously sent text message as read.

app = WhatsApp(token, phone_number_id = {"key": "xxxxxxxxx"})


@app.on_message
async def on_message(message):
    message.react("👍")

app.run("0.0.0.0", 8080)
Clone this wiki locally