Don't have Telegram yet? Try it now!
http://androroot.com/2017/12/headset-button-useful.html
How to make Headset Button more useful in Android