Came across Mattermost as seemingly the most advanced self-hosted chat/Slack-type client available. It also has an API with bot support, so should be able to do everything the Telegram integration can.
I think this would be especially interesting for people that are behind a corporate firewall, as you can connect to your own chat client page that works on port 80 and isn’t on any predefined firewall list.