Don't have Telegram yet? Try it now!
https://dev.mikamai.com/2014/09/26/media-keys-not-working-on-mac-osx-this-might-be/
Media keys not working on Mac OSX? This might be the solution