By the way, I’ve implemented Discourse SSO provider for Telegram Login, basing on the code from my SAML SSO provider:
https://github.com/kirushik/discourse_telegram_auth/
Also available from DockerHub, docker pull kirushik/discourse_telegram_auth
.
Currently it’s completely untested, and lacks any documentation — but bugreports and feature requests are welcome.