summaryrefslogtreecommitdiffstats
path: root/taulubot.py
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-07-19 10:14:13 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-07-19 10:14:13 +0300
commite1ae18d1bc9e26f8ab817ca1c1e4e271badf02ad (patch)
treef5378dbb83eb2683f1da337463cc2d54febc4c8d /taulubot.py
parent34b1b2f9816c648e494399c7b9908ab53a8947a6 (diff)
Only get message updates
Diffstat (limited to 'taulubot.py')
-rw-r--r--taulubot.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/taulubot.py b/taulubot.py
index ae8a9b8..6b9c1a2 100644
--- a/taulubot.py
+++ b/taulubot.py
@@ -136,8 +136,6 @@ def handle(msg):
logging.warning("Listening...")
-MessageLoop(bot, handle).run_as_thread()
-
-# Keep the program running.
-while 1:
- time.sleep(1)
+MessageLoop(bot, handle).run_forever(
+ allowed_updates=["message"],
+)