From 7518caae79217bd3ceee6a6cbf797b0353686223 Mon Sep 17 00:00:00 2001 From: apepenkov <39992738+apepenkov@users.noreply.github.com> Date: Sat, 24 Sep 2022 12:20:19 +0300 Subject: [PATCH] Fix typo in authenticator (#3878) --- telethon/_network/authenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/_network/authenticator.py b/telethon/_network/authenticator.py index 2a6890d7..3ccce440 100644 --- a/telethon/_network/authenticator.py +++ b/telethon/_network/authenticator.py @@ -140,7 +140,7 @@ async def do_authentication(sender): # dh_prime - 2^{2048-64} as well. # (https://core.telegram.org/mtproto/auth_key#dh-key-exchange-complete) if not (1 < g < (dh_prime - 1)): - raise SecurityError('g_a is not within (1, dh_prime - 1)') + raise SecurityError('g is not within (1, dh_prime - 1)') if not (1 < g_a < (dh_prime - 1)): raise SecurityError('g_a is not within (1, dh_prime - 1)')