From 1afe4d3a24c883af2ee5ebcc8b1d9193b68f26de Mon Sep 17 00:00:00 2001 From: Ryuk <88324835+anonymousx97@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:55:37 +0530 Subject: [PATCH] fix peerID invalid for new chats: https://t.me/pyrogramchat/618119 --- pyrogram/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/utils.py b/pyrogram/utils.py index bc0d1421..b8796b2f 100644 --- a/pyrogram/utils.py +++ b/pyrogram/utils.py @@ -274,9 +274,9 @@ def unpack_inline_message_id(inline_message_id: str) -> "raw.base.InputBotInline MIN_CHANNEL_ID_OLD = -1002147483647 -MIN_CHANNEL_ID = -1009999999999 +MIN_CHANNEL_ID = -100999999999999 MAX_CHANNEL_ID = -1000000000000 -MIN_CHAT_ID = -2147483647 +MIN_CHAT_ID = -999999999999 MAX_USER_ID_OLD = 2147483647 MAX_USER_ID = 999999999999