From 69e6274f427aa25143681215bcba00affd08497f Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 24 Jul 2025 19:37:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D1=82=D1=8B=20=D0=B8=D0=B7=20send=5Fmessage.py=20=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20AFTER?= =?UTF-8?q?=5FMEDIA=5FINPUT=5FDELAY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maxapi/connection/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maxapi/connection/base.py b/maxapi/connection/base.py index 305224f..662f459 100644 --- a/maxapi/connection/base.py +++ b/maxapi/connection/base.py @@ -37,10 +37,14 @@ class BaseConnection: """ API_URL = 'https://botapi.max.ru' + RETRY_DELAY = 2 + ATTEMPTS_COUNT = 5 + AFTER_MEDIA_INPUT_DELAY = 2.0 def __init__(self) -> None: self.bot: Optional[Bot] = None self.session: Optional[ClientSession] = None + self.after_input_media_delay: float = self.AFTER_MEDIA_INPUT_DELAY async def request( self,