Skip to content

bertman80/telegram-send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Telegram-send

Basic script to send telegram messages

Install
Copy this file in the BIN directory and give it executable rights
sudo cp telegram-send /usr/bin/telegram-send
sudo chmod +x /usr/bin/telegram-send

First run
sudo 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

Pictures
Telegram send
telegram send

Telegram unknown user (case sensitive)
telegram unknown

Execute
telegram-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