Всем привет, подскажите пожалуйста кто сталкивался с таким
import socks
from telethon import TelegramClient
# Use your own values from
my.telegram.orgapi_id = id
api_hash = hash'
# The first parameter is the .session file name (absolute paths allowed)
with TelegramClient('session', api_id, api_hash, proxy = ('http', '
random.proxy.com', int(7000), 'login', 'login')) as client:
client.loop.run_until_complete(client.send_message('theB0oogie', 'Привет!'))
ответ
Attempt 1 at connecting failed: ConnectionError: [Errno Proxy error: 403 Forbidden] 403
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\
helpers.py", line 184, in _sync_enter
return loop.run_until_complete(self.
aenter())
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\client\
auth.py", line 713, in
aenter return await self.start()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\client\
auth.py", line 140, in _start
await self.connect()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\client\
telegrambaseclient.py", line 513, in connect
if not await self._sender.connect(self._connection(
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\network\
mtprotosender.py", line 127, in connect
await self._connect()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\network\
mtprotosender.py", line 253, in _connect
raise ConnectionError('Connection to Telegram failed {} time(s)'.format(self._retries))
ConnectionError: Connection to Telegram failed 5 time(s)