From fd5e63a2241715be4590263523e4d037b6d6a711 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Tue, 4 Jul 2023 11:24:24 +0700 Subject: [PATCH] PyroFork: set STORED_MSG_IDS_MAX_SIZE to 500 Signed-off-by: wulan17 --- pyrogram/crypto/mtproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/crypto/mtproto.py b/pyrogram/crypto/mtproto.py index c893e3e5..643afeba 100644 --- a/pyrogram/crypto/mtproto.py +++ b/pyrogram/crypto/mtproto.py @@ -27,7 +27,7 @@ from pyrogram.raw.core import Message, Long from . import aes from ..session.internals import MsgId -STORED_MSG_IDS_MAX_SIZE = 1000 * 2 +STORED_MSG_IDS_MAX_SIZE = 500 def kdf(auth_key: bytes, msg_key: bytes, outgoing: bool) -> tuple: