diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-07-28 15:00:48 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-07-28 15:00:48 +0700 |
commit | 899d75d5165b7156dfece893523a7131232a195a (patch) | |
tree | e343c69acb29ab29cf1392388a260f0fdd12644c /main.py | |
parent | f3acbe23ead27f85367761ba5ec0b1a03df40c09 (diff) |
upd status, clean db, clean telegram queue
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ def sendLog(msg): bot.sendMessage(f"Selesai menampilkan log. Line terakhir: {maxLines}", log=False) -def processMessages(messages): +def handleCommand(messages): for msg in messages: msg = msg.lower() if msg == 'update': @@ -105,7 +105,7 @@ if __name__ == '__main__': initDb() while True: if not bot.isProcessingPolling and bot.hasNewMessages: - processMessages(bot.getNewMessages()) + handleCommand(bot.getNewMessages()) else: bot.pollUpdate() run_pending() |