diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-09-25 19:50:54 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2024-09-25 19:50:54 +0700 |
commit | 03ffdd456aba172541e359a0642e924ffb94d795 (patch) | |
tree | 9e8c01bbf8e2376155162d35c207fd2b7c84ea6d /bot.py | |
parent | 899d75d5165b7156dfece893523a7131232a195a (diff) |
isbusymain
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ class Bot: def __init__(self): self.token = os.getenv('BOT_TOKEN') self.chatId = os.getenv('BOT_CHAT_ID') - self.isProcessingPolling = False + self.isBusy = False self.hasNewMessages = False self.messages = list() @@ -61,7 +61,7 @@ class Bot: logger.error(e) def pollUpdate(self): - self.isProcessingPolling = True + self.isBusy = True try: url = f'https://api.telegram.org/bot{self.token}/getUpdates' @@ -74,7 +74,7 @@ class Bot: logger.error("Connection error during polling update") self._checkUnreadDb() - self.isProcessingPolling = False + self.isBusy = False def getNewMessages(self): result = list() |