Thank you for your help on this. Using Python 3.7 indeed got the script in question working.
I found the script unsuitable for production compared to Discourse/Babble/Matterbridge. This could be related to additional environmental issues or it could perhaps be the use of Telegram specifically.
- There’s a 10+ second latency for messages appearing inside of Babble (the other way is instantaneous)
- Pictures get dropped entirely (the author mentions that links to images would be shared instead)
- Messages will at random (~50% of the time) not be delivered to the Babble side until Matterbabble is restarted.