Skip to content

Commit

Permalink
add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
elizaveta-andreeva committed May 29, 2024
1 parent d0c9013 commit 991b161
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utilities/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
DEBUG_MODE,
DEBUG_ON,
DEBUG_OFF,
TOKEN
TOKEN,
DELAY
)

from databases.db import get_user_mode
Expand Down Expand Up @@ -67,4 +68,4 @@ def send_voice(text, user, reply_markup):
response = requests.post(url, data=data, files=files)
if response.status_code != 200:
print(f'Error sending request: {response.text}')
time.sleep(10)
time.sleep(DELAY)

0 comments on commit 991b161

Please sign in to comment.