diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 6140ff59..fbedaee2 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -69,7 +69,7 @@ class TelegramClient(TelegramBareClient): def __init__(self, session, api_id, api_hash, connection_mode=ConnectionMode.TCP_FULL, - use_v6=False, + use_ipv6=False, proxy=None, update_workers=None, timeout=timedelta(seconds=5), @@ -114,7 +114,7 @@ class TelegramClient(TelegramBareClient): super().__init__( session, api_id, api_hash, connection_mode=connection_mode, - use_v6=use_v6, + use_ipv6=use_ipv6, proxy=proxy, update_workers=update_workers, spawn_read_thread=spawn_read_thread,