Don't have Telegram yet? Try it now!
https://jacobsalmela.com/2014/06/12/bash-script-enable-access-assistive-devices-programmatically-os-x-mavericks-10-9-x-simulate-keystrokes/
Bash Script: Enable Access to Assistive Devices Programmatically in OS X Mavericks 10.9.x - Simulate Keystrokes