Skip to content

Commit

Permalink
refactor: bot core
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmaialva33 committed Oct 28, 2024
1 parent 42d241d commit 43831d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WinxMusic/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pyrogram.errors import (
ChatSendPhotosForbidden,
ChatWriteForbidden,
FloodWait,
FloodWait, MessageIdInvalid,
)
from pyrogram.types import (
BotCommand,
Expand Down Expand Up @@ -50,6 +50,8 @@ async def edit_message_text(self, *args, **kwargs):
await asyncio.sleep(time)
if time < 25:
return await self.edit_message_text(self, *args, **kwargs)
except MessageIdInvalid:
pass

async def send_message(self, *args, **kwargs):
if kwargs.get("send_direct", False):
Expand Down

0 comments on commit 43831d8

Please sign in to comment.