Skip to content

ivzhh/wallabag-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Prepare Configuration File

Please put a json file of the following format in path $HOME/.config/t.me/wallabag.json

{
    "token": "wallabag-token",
    "wallabag_site": "wallabag.yourdomain.com",
    "client_id": "wallabag-client-id",
    "client_secret": "wallabag-client-secret",
    "username": "wallabag-username",
    "password": "wallabag-password"
}

Install Dependencies

go get github.com/mattn/go-sqlite3 \
    github.com/go-telegram-bot-api/telegram-bot-api \
    mvdan.cc/xurls \
    github.com/sirupsen/logrus

Run The Bot

go run main.go

Usage 2: Docker + Systemd

sudo docker build . -t localhost/wallabag-bot

sudo mkdir -p /etc/wallabag-bot
# fix the path in docker-compose.yaml, then
sudo cp docker-compose.yaml /etc/wallabag-bot
sudo cp [email protected] /etc/systemd/system/

sudo systemctl enable --now [email protected]

Ask questions

[@]ivz hh](https://github.com/ivzhh)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published