WebSocket connection failed
I am getting this error

I am not sure why I am getting it. I created client using TelegramClient Class. If you need more details please comment on this issue. Thank You
are you able to use telegram normally without a proxy? are you maybe using ipv6 ?. try pinging that IP and see the result.
I don't know whether I am using proxy.
I am getthing this message after pining :
Ping request could not find host 91.108.56.166:80. Please check the name and try again.

telegram is probably banned in your country then :/
Telegram is not banned in my country. I am living in India.
On Fri, 20 May 2022, 22:55 painor, @.***> wrote:
telegram is probably banned in your country then :/
— Reply to this email directly, view it on GitHub https://github.com/gram-js/gramjs/issues/328#issuecomment-1133146543, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNRUAU4FFSENMK25Q7O7I3VK7DH7ANCNFSM5WQANRAA . You are receiving this because you authored the thread.Message ID: @.***>
can you try removing the port part when pinging ?
ping 91.108.56.166
Did this error happen suddenly or was it always like this?
This error happened suddenly. I kept it running for 2-3 hours and then error warning started to pop.
ah it could be an issue with telegram servers, maybe try in an hour and see if it starts working? try a new fresh sessions as well
I want it to run continuously. I can't check it after every hour. Do we have any workaround?
not really :/ this only happens to me when my connection is dropped
Can I notify my client if it fails to reconnect and if possible, can you provide the name of the method or steps to do it?
I have a similar issue—I can connect using my phone's hotspot and my personal Wi-Fi, but not with the Wi-Fi connection at my workplace. Any ideas?
[2023-08-25T09:59:22.507] [INFO] - [Connecting to 149.154.167.91:80/TCPFull...]
[2023-08-25T09:59:22.537] [INFO] - [connection closed]
[2023-08-25T09:59:22.538] [ERROR] - [WebSocket connection failed attempt: 1]