Skip to content

Commit 5d11be6

Browse files
authored
Исправление получения сообщений
1 parent c9973b9 commit 5d11be6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pymax/interfaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,10 @@ async def _handle_file_upload(self, data: dict[str, Any]) -> None:
289289
async def _send_notification_response(self, chat_id: int, message_id: str) -> None:
290290
if self._socket is not None and 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

0 commit comments

Comments
 (0)