From e1ae18d1bc9e26f8ab817ca1c1e4e271badf02ad Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 19 Jul 2025 10:14:13 +0300 Subject: Only get message updates --- taulubot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'taulubot.py') 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"], +) -- cgit v1.3