core: add control option to check the message queue length

This commit is contained in:
dymik739 2023-10-10 00:15:21 +03:00
parent 3e38c113d9
commit 79a307a7b5
1 changed files with 5 additions and 0 deletions

View File

@ -271,6 +271,11 @@ def queue_processor():
print(f"[INFO]: DELAY_AFTER_IDLE = {DELAY_AFTER_IDLE}")
updater.bot.send_message(msg.chat.id, f"[INFO]: DELAY_AFTER_IDLE = {DELAY_AFTER_IDLE}")
elif len(command) == 2 and command[0] == "queue":
if command[1] == "size":
print(f"[INFO]: Queue length is {len(message_queue)}")
updater.bot.send_message(msg.chat.id, f"[INFO]: Queue length is {len(message_queue)}")
continue
# modules are used in here