Skip to content

Commit 2f55acb

Browse files
Merge pull request #36 from BoryaGames/dev/1.2.6
Фикс критичного бага
2 parents c9973b9 + 4d2f019 commit 2f55acb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/pymax/interfaces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@ async def _handle_file_upload(self, data: dict[str, Any]) -> None:
287287
self.logger.debug("Fulfilled file upload waiter for %s=%s", key, id_)
288288

289289
async def _send_notification_response(self, chat_id: int, message_id: str) -> None:
290-
if self._socket is not None and self.is_connected:
290+
if self._socket is None or not self.is_connected:
291291
return
292-
await self._send_and_wait(
292+
await self._queue_message(
293293
opcode=Opcode.NOTIF_MESSAGE,
294294
payload={"chatId": chat_id, "messageId": message_id},
295-
cmd=0,
295+
cmd=1,
296296
)
297297
self.logger.debug(
298298
"Sent NOTIF_MESSAGE_RECEIVED for chat_id=%s message_id=%s", chat_id, message_id

src/pymax/static/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
DEFAULT_DEVICE_LOCALE: Final[str] = "ru"
7878
DEFAULT_DEVICE_NAME: Final[str] = choice(DEVICE_NAMES)
7979
DEFAULT_APP_VERSION: Final[str] = "25.12.14"
80-
DEFAULT_SCREEN: Final[str] = "1080x1920 1.0x"
80+
DEFAULT_SCREEN: Final[str] = choice(SCREEN_SIZES)
8181
DEFAULT_OS_VERSION: Final[str] = choice(OS_VERSIONS)
8282
DEFAULT_USER_AGENT: Final[str] = ua_generator.generate().text
8383
DEFAULT_BUILD_NUMBER: Final[int] = 0x97CB

0 commit comments

Comments
 (0)