The task is to get True in response, it will mean that the telethon successful
from telethon import TelegramClient import socks client = TelegramClient('session_id', api_id=ID, api_hash=HASH, proxy=(socks.SOCKS5, 'proxy', socks5) ) client.is_user_authorized() I get the answer:
RuntimeWarning: coroutine 'UserMethods.is_user_authorized' was never awaited client.is_user_authorized() ps proxy works. As I understand it, the error is related to the asynchronous task call. but I didn't do anything like that. Here is the documentation: https://telethon.readthedocs.io/en/stable/extra/basic/telegram-client.html