Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Error Could not create SSL/TLS secure channel #26

Open
gerberasa opened this issue Jul 18, 2020 · 0 comments
Open

Error Could not create SSL/TLS secure channel #26

gerberasa opened this issue Jul 18, 2020 · 0 comments

Comments

@gerberasa
Copy link

It seems telegram server requires TLS1.2.
Add this before botclient.SendTextMessageAsync():

Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant