Skip to content

Commit

Permalink
Merge pull request #7 from Tch1b0/fix-bot-inactivity
Browse files Browse the repository at this point in the history
fix bot inactivity
  • Loading branch information
Tch1b0 authored Oct 8, 2023
2 parents ace1618 + d734bd5 commit 256b0d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/telegrambot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ async def stop(self) -> None:
async def update_base_message(self):
content = self.get_info_board()
if content != self.base_message.text:
await self.base_message.edit_text(content)
failed = await self.base_message.edit_text(content)
if failed is True:
self.stop()
self.start()

async def update_base_message_loop(self):
while True:
Expand Down

0 comments on commit 256b0d2

Please sign in to comment.