- Raspberry Pi / NanoPi
- Raspbian OS / DietPi / ARMbian
- Token and chat_id of your telegram bot, you can request them here from Telegram App:
- Bot token: https://t.me/botfather
- Chat_ID: https://t.me/myidbot
sudo apt update
sudo apt upgrade -y
sudo apt curl -y
ExecStart=/usr/bin/bash /root/hello.sh
cp hello.service /etc/systemd/system/
chmod 0644 /etc/systemd/system/
systemctl daemon-reload
systemctl enable hello.service
Edit the script hello.sh, to add your bot token, and your chat_id, rename the chosen script to hello.sh
TOKEN_BOT="YOUR_TOKEN_BOT"
TOKEN_ID="YOUR_TOKEN_CHAT"
chmod a+x /root/hello.sh