Fix typo in README (#4242)

This commit is contained in:
apepenkov 2023-11-09 01:06:27 +03:00 committed by GitHub
parent e1983b80c2
commit 4f4db020da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,14 +39,14 @@ Creating a client
.. code-block:: python .. 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 # 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_hash from https://my.telegram.org, under API Development.
api_id = 12345 api_id = 12345
api_hash = '0123456789abcdef0123456789abcdef' 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() await client.interactive_login()