Don't have Telegram yet? Try it now!
https://brianchan.us/2016/07/22/reattach-terminal-process-x11-restarted/
Reattach to a terminal process when x11 is restarted