Skip to content

Commit b59ae77

Browse files
Fix recover gaps
1 parent b6826da commit b59ae77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrogram/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
from pyrogram.session import Auth, Session
5454
from pyrogram.storage import Storage, FileStorage, MemoryStorage
5555
from pyrogram.types import User, TermsOfService, LinkPreviewOptions
56-
from pyrogram.utils import ainput
56+
from pyrogram.utils import MIN_MONOFORUM_CHANNEL_ID, ainput
5757
from pyrogram.qrlogin import QRLogin
5858
from .connection import Connection
5959
from .connection.transport import TCP, TCPAbridged
@@ -798,7 +798,7 @@ async def recover_gaps(self) -> Tuple[int, int]:
798798
pts=local_pts,
799799
limit=10000,
800800
force=False
801-
) if id < 0 else
801+
) if id < 0 or id > MIN_MONOFORUM_CHANNEL_ID else
802802
raw.functions.updates.GetDifference(
803803
pts=local_pts,
804804
date=local_date,

0 commit comments

Comments
 (0)