1

I want to connect another proxy when i got timeout Error. but timeout error is not a raise so i don't know how to handle it.

This is my code :

from pyrogram import Client

app = Client(
"test",
api_id=235617,
api_hash='a50c4ad0c480c5665b47e2779e948b5c',
app_version ='1.0',
proxy=dict(hostname="5.8.18.84", port=33308),
) 


app.start()

Output :

Error connecting to SOCKS5 proxy 5.8.18.84:33308: timed out

Tibebes. M
  • 6,940
  • 5
  • 15
  • 36
purya nms
  • 48
  • 1
  • 7

0 Answers0