Don't have Telegram yet? Try it now!
https://www.techgrapple.com/prevent-mac-from-showing-recent-used-applications-in-the-dock/
Prevent Mac from Showing Recent Used Applications in the Dock