I'm using HttpToSocks5Proxy with TelegramBotClient. A day ago I got an "Could not create SSL/TLS secure channel" error. My code used to sent messages, but now it don't.
I tried all the proposed solutions in the tickets above, but nothing helped.
I tried to add line above to HttpToSocks5Proxy.cs, but it didn't work for me
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
Any ideas how to fix the problem? Thank you in advance!
I'm using HttpToSocks5Proxy with TelegramBotClient. A day ago I got an "Could not create SSL/TLS secure channel" error. My code used to sent messages, but now it don't.
I found out that, due to Telegram disabling everything older than TLS v1.2 (which is not used as the default in .NET Framework 4.5 and earlier) https://github.com/TelegramBots/Telegram.Bot/issues/867 https://github.com/TelegramBots/Telegram.Bot/issues/869
I tried all the proposed solutions in the tickets above, but nothing helped. I tried to add line above to HttpToSocks5Proxy.cs, but it didn't work for me System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
Any ideas how to fix the problem? Thank you in advance!