From 991b161e1ce07ac305ab681ada00b65ea7b31f80 Mon Sep 17 00:00:00 2001 From: elizaveta-andreeva Date: Wed, 29 May 2024 21:59:13 +0300 Subject: [PATCH] add delay --- src/utilities/wrapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utilities/wrapper.py b/src/utilities/wrapper.py index f813ce3..3d71ab3 100644 --- a/src/utilities/wrapper.py +++ b/src/utilities/wrapper.py @@ -15,7 +15,8 @@ DEBUG_MODE, DEBUG_ON, DEBUG_OFF, - TOKEN + TOKEN, + DELAY ) from databases.db import get_user_mode @@ -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)