Small and simple Telegram Bot for Omega2 written in Python 3.
- Files upload and download
- Can be used without a SD card
- Accepts messages only from allowed users list
- Allows to execute bash commands
- Displays messages on Omega's display
- Torrents management (using transmission client)
- Easy to add user commands
- Register a bot using @BotFather.
- Run a script
curl -o- -L https://raw.githubusercontent.com/sergkh/omega-telegram-bot/master/raspberry-install.py | sudo bash
- Register a bot using @BotFather.
- Install Python3 and necessary modules:
# opkg update
# opkg install python3 python3-base python3-codecs python3-logging python3-openssl
- Copy bot.py into Omega's root folder:
# cd ~ && wget https://raw.githubusercontent.com/sergkh/omega-telegram-bot/master/bot.py
- Create a configuration file:
/root/.config/telegram_bot
:
# mkdir /root/.config/ && vi /root/.config/telegram_bot
with the following contents:
{ "token": "bot_token", "allowed_users": ["your_username"] }
- Copy init.d script into your init.d folder:
# cd /etc/init.d/ && wget https://raw.githubusercontent.com/sergkh/omega-telegram-bot/master/init.d/bot
- Enable a service autostart and run it:
# chmod +x /etc/init.d/bot
# /etc/init.d/bot enable
# /etc/init.d/bot start