summaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index c985ff4..f73f1d2 100644
--- a/bot.py
+++ b/bot.py
@@ -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()