Basic script to send telegram messages
Install
Copy this file in the BIN directory and give it executable rightssudo cp telegram-send /usr/bin/telegram-sendsudo chmod +x /usr/bin/telegram-send
First runsudo telegram-send
A config file will be created: telegram-send.conf
this file needs to contains the Telegram ID for this bot (https://www.trebnie.nl/ict-tips/telegram/)
you can add user to this file with there Telegram ID
Telegram unknown user (case sensitive)
Executetelegram-send -h (help)telegram-send -c (view contactlist)
You can now send a telegram:telegram-send bertman "hello"telegram-send michel "hello"
Example scripts: https://github.com/bertman80/telegram
Error
When you get this error, you need to run it first as sudo to create a conf file
touch: cannot touch '/usr/bin/telegram-send.conf': Permission denied
/usr/bin/telegram-send: line 26: /usr/bin/telegram-send.conf: Permission denied
/usr/bin/telegram-send: line 27: /usr/bin/telegram-send.conf: Permission denied
/usr/bin/telegram-send: line 28: /usr/bin/telegram-send.conf: Permission denied

