Skip to content

Commit

Permalink
feat - sleep 10 secs before send message
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulo2 committed Oct 3, 2024
1 parent 17358fb commit 5c9cf40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions function/telegram/sender.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import asyncio

from uuid import uuid4
from random import shuffle

Expand Down Expand Up @@ -95,6 +97,8 @@ async def _send_album(self, message: TelegramMessage):
raise exc

async def send(self, message: TelegramMessage):
await asyncio.sleep(10)

try:
if message.album:
await self._send_album(message)
Expand Down

0 comments on commit 5c9cf40

Please sign in to comment.