Removed unnecessary awaits
This commit is contained in:
+3
-3
@@ -45,11 +45,11 @@ class TelegramHelper:
|
||||
response_message = await self._clear_logic(user_id)
|
||||
await update.message.reply_text(response_message)
|
||||
|
||||
async def _status_logic(self) -> str:
|
||||
return await self.bot.get_bot_status()
|
||||
def _status_logic(self) -> str:
|
||||
return self.bot.get_bot_status()
|
||||
|
||||
async def status(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||
response_message = await self._status_logic()
|
||||
response_message = self._status_logic()
|
||||
await update.message.reply_text(response_message)
|
||||
|
||||
async def _switch_logic(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user