Skip to content

sergkh/omega-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omega-telegram-bot

Small and simple Telegram Bot for Omega2 written in Python 3.

Features

  • 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

Installation on Raspberry Pi

  1. Register a bot using @BotFather.
  2. Run a script
curl -o- -L https://raw.githubusercontent.com/sergkh/omega-telegram-bot/master/raspberry-install.py | sudo bash

Installation on Omega2

  1. Register a bot using @BotFather.
  2. Install Python3 and necessary modules:
# opkg update
# opkg install python3 python3-base python3-codecs python3-logging python3-openssl
  1. Copy bot.py into Omega's root folder:
# cd ~ && wget https://raw.githubusercontent.com/sergkh/omega-telegram-bot/master/bot.py
  1. 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"] }
  1. 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
  1. Enable a service autostart and run it:
# chmod +x /etc/init.d/bot
# /etc/init.d/bot enable 
# /etc/init.d/bot start

About

Simple Telegram Bot for Omega2 written in Python 3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published