Skip to content

Commit d1a6bae

Browse files
authored
fix: update MIN_CHANNEL_ID and MIN_CHAT_ID (#25)
* Update MIN_CHANNEL_ID Reference: https://t.me/HydrogramChat/3032 * Update MIN_CHAT_ID too https://t.me/pyrogramchat/593090 Even though this was relatively older change
1 parent 8475c4a commit d1a6bae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hydrogram/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ def unpack_inline_message_id(inline_message_id: str) -> raw.base.InputBotInlineM
191191
)
192192

193193

194-
MIN_CHANNEL_ID = -1002147483647
194+
MIN_CHANNEL_ID_OLD = -1002147483647
195+
MIN_CHANNEL_ID = -1007852516352
195196
MAX_CHANNEL_ID = -1000000000000
196-
MIN_CHAT_ID = -2147483647
197+
MIN_CHAT_ID_OLD = -2147483647
198+
MIN_CHAT_ID = -999999999999
197199
MAX_USER_ID_OLD = 2147483647
198200
MAX_USER_ID = 999999999999
199201

0 commit comments

Comments
 (0)