From 642051c76a6651d5f788577f83acbeace7fde9de Mon Sep 17 00:00:00 2001 From: colinsl <44621864+colinsl@users.noreply.github.com> Date: Tue, 13 Feb 2024 18:49:40 -0800 Subject: [PATCH] Update installation_and_usage.rst --- docs/root/installation_and_usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/root/installation_and_usage.rst b/docs/root/installation_and_usage.rst index 87eb102..1ba2b50 100644 --- a/docs/root/installation_and_usage.rst +++ b/docs/root/installation_and_usage.rst @@ -59,7 +59,7 @@ Here's a really basic example, that'll route message events, and interactive com @flask_app.route('/api/v1/bot', methods=['POST']) def pingbot_route(): message = request.get_json() - ret = router.handle_message(message) + ret = router.handle_event(message) return jsonify(ret) The above example will respond with ``pong``, when a user sends ``@pingbot ping``, or when an user interacts with an interactive component, which sends the ``ping_callback`` event.