From d5ee22bacc7493706d82e62a39e34c633feb7706 Mon Sep 17 00:00:00 2001 From: Md Jisan <66010486+Jisan09@users.noreply.github.com> Date: Thu, 10 Feb 2022 17:44:54 +0530 Subject: [PATCH] Update string.py --- telethon/_sessions/string.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/_sessions/string.py b/telethon/_sessions/string.py index 2cb66aa6..7247272e 100644 --- a/telethon/_sessions/string.py +++ b/telethon/_sessions/string.py @@ -48,7 +48,7 @@ class StringSession(MemorySession): takeout_id=0 ) if ip_len == 4: - ipv4 = int.from_bytes(ip, 'big', False) + ipv4 = int.from_bytes(ip, 'big', signed=False) ipv6 = None else: ipv4 = None