From 5d11be6430996db7ac2c5f38194dcf02d558ce2f Mon Sep 17 00:00:00 2001 From: BoryaGames <67229357+BoryaGames@users.noreply.github.com> Date: Fri, 2 Jan 2026 21:23:47 +0500 Subject: [PATCH 1/3] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pymax/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pymax/interfaces.py b/src/pymax/interfaces.py index abe8ed7..6a5ba0a 100644 --- a/src/pymax/interfaces.py +++ b/src/pymax/interfaces.py @@ -289,10 +289,10 @@ async def _handle_file_upload(self, data: dict[str, Any]) -> None: async def _send_notification_response(self, chat_id: int, message_id: str) -> None: if self._socket is not None and self.is_connected: return - await self._send_and_wait( + await self._queue_message( opcode=Opcode.NOTIF_MESSAGE, payload={"chatId": chat_id, "messageId": message_id}, - cmd=0, + cmd=1, ) self.logger.debug( "Sent NOTIF_MESSAGE_RECEIVED for chat_id=%s message_id=%s", chat_id, message_id From e6966d4d0a2a88f43f661709869a8bc83c1ef2de Mon Sep 17 00:00:00 2001 From: BoryaGames <67229357+BoryaGames@users.noreply.github.com> Date: Fri, 2 Jan 2026 21:24:25 +0500 Subject: [PATCH 2/3] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D1=80=D0=B0=D0=BD=D0=B4=D0=BE=D0=BC=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=20=D1=8D=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pymax/static/constant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymax/static/constant.py b/src/pymax/static/constant.py index 77db333..6feed26 100644 --- a/src/pymax/static/constant.py +++ b/src/pymax/static/constant.py @@ -77,7 +77,7 @@ DEFAULT_DEVICE_LOCALE: Final[str] = "ru" DEFAULT_DEVICE_NAME: Final[str] = choice(DEVICE_NAMES) DEFAULT_APP_VERSION: Final[str] = "25.12.14" -DEFAULT_SCREEN: Final[str] = "1080x1920 1.0x" +DEFAULT_SCREEN: Final[str] = choice(SCREEN_SIZES) DEFAULT_OS_VERSION: Final[str] = choice(OS_VERSIONS) DEFAULT_USER_AGENT: Final[str] = ua_generator.generate().text DEFAULT_BUILD_NUMBER: Final[int] = 0x97CB From 4d2f01993933ea7208ab0322999ef0c6776fbd70 Mon Sep 17 00:00:00 2001 From: BoryaGames <67229357+BoryaGames@users.noreply.github.com> Date: Fri, 2 Jan 2026 21:35:17 +0500 Subject: [PATCH 3/3] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pymax/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymax/interfaces.py b/src/pymax/interfaces.py index 6a5ba0a..b91cb7a 100644 --- a/src/pymax/interfaces.py +++ b/src/pymax/interfaces.py @@ -287,7 +287,7 @@ async def _handle_file_upload(self, data: dict[str, Any]) -> None: self.logger.debug("Fulfilled file upload waiter for %s=%s", key, id_) async def _send_notification_response(self, chat_id: int, message_id: str) -> None: - if self._socket is not None and self.is_connected: + if self._socket is None or not self.is_connected: return await self._queue_message( opcode=Opcode.NOTIF_MESSAGE,