From 2149ed07d1964e567ff8049788a0819f5a6a7020 Mon Sep 17 00:00:00 2001 From: Yusuf Usta Date: Sat, 6 Nov 2021 14:47:46 +0300 Subject: [PATCH] add_surrogate bug fix --- telethon/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/helpers.py b/telethon/helpers.py index 6c782b0b..96ef8135 100644 --- a/telethon/helpers.py +++ b/telethon/helpers.py @@ -40,7 +40,7 @@ def add_surrogate(text): # SMP -> Surrogate Pairs (Telegram offsets are calculated with these). # See https://en.wikipedia.org/wiki/Plane_(Unicode)#Overview for more. ''.join(chr(y) for y in struct.unpack('