https://github.com/meinside/telegram-bot-headless-rpi
A Telegram bot for controlling Raspberry Pi headlessly
https://github.com/meinside/telegram-bot-headless-rpi
golang raspberry-pi telegram-bot
Last synced: 11 months ago
JSON representation
A Telegram bot for controlling Raspberry Pi headlessly
- Host: GitHub
- URL: https://github.com/meinside/telegram-bot-headless-rpi
- Owner: meinside
- Created: 2018-03-22T12:13:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T07:58:49.000Z (about 6 years ago)
- Last Synced: 2025-01-10T16:18:36.053Z (about 1 year ago)
- Topics: golang, raspberry-pi, telegram-bot
- Language: Go
- Size: 14.6 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegram-bot-headless-rpi
This is a Telegram Bot for controlling Raspberry Pi headlessly.
## Install
Get it:
```bash
$ go get -d github.com/meinside/telegram-bot-headless-rpi
```
and build it:
```bash
$ cd $GOPATH/src/github.com/meinside/telegram-bot-headless-rpi
$ go build
```
## Configuration
### Config file
```bash
$ cd $GOPATH/src/github.com/meinside/telegram-bot-headless-rpi
$ cp config.json.sample config.json
$ vi config.json
```
and edit values to yours:
```
{
"api_token": "0123456789:abcdefghijklmnopqrstuvwyz-x-0a1b2c3d4e",
"available_ids": [
"telegram_id_1",
"telegram_id_2",
"telegram_id_3"
],
"telegram_monitor_interval": 1,
"ipstack_access_key": "xyz_123466789_abcd",
"ipstack_premium": false,
"is_verbose": false
}
```
### systemd
```bash
$ sudo cp systemd/telegram-bot-headless-rpi.service /lib/systemd/system/
$ sudo vi /lib/systemd/system/telegram-bot-headless-rpi.service
```
and edit **User**, **Group**, **WorkingDirectory** and **ExecStart** values.
It will launch automatically on boot with:
```bash
$ sudo systemctl enable telegram-bot-headless-rpi.service
```
and will start with:
```bash
$ sudo systemctl start telegram-bot-headless-rpi.service
```
## Send commands through Telegram

## License
MIT