From 4f4db020daf5398fb6a1d43bcabeeab9a5c21f09 Mon Sep 17 00:00:00 2001 From: apepenkov <39992738+apepenkov@users.noreply.github.com> Date: Thu, 9 Nov 2023 01:06:27 +0300 Subject: [PATCH] Fix typo in README (#4242) --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index ef2cdfe9..2fc9a647 100755 --- a/README.rst +++ b/README.rst @@ -39,14 +39,14 @@ Creating a client .. code-block:: python - from telethon import TelegramClient, events, sync + from telethon import Client, events # These example values won't work. You must get your own api_id and # api_hash from https://my.telegram.org, under API Development. api_id = 12345 api_hash = '0123456789abcdef0123456789abcdef' - async with TelegramClient('session_name', api_id, api_hash) as client: + async with Client('session_name', api_id, api_hash) as client: await client.interactive_login()