Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pymax/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
BoryaGames marked this conversation as resolved.
Outdated
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
Expand Down
2 changes: 1 addition & 1 deletion src/pymax/static/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down