Don't have Telegram yet? Try it now!
https://onezeronull.com/2012/07/17/cross-browser-function-for-adding-an-event-listener/
Cross-browser function for adding an event listener