RSS bot for telegram written in Go
This is an another telegram bot for usage with RSS feeds.
To use this, you first need to register a telegram bot by reading the documentation: https://core.telegram.org/bots#3-how-do-i-create-a-bot
For this bot to work, you will need a token which authorizes you to use the telegram api.
After you have the token, you should create a copy of the sample file and fill it out accordingly.
Rename bot-config.sample.json
to bot-config.json
.
You can put the config file in the current folder on where the binary resides or put it in this folder if created $HOME/.telegram-rss-bot
, the app should be able to find it here too if you want to have some fixed location for your configuration files.
{
"telegram_auth_key": "token",
"migrations": "v1",
"telegram_api_debug": false,
"db_path": "./bot.db",
"log_level": "info",
"feed_parse_amount": 5,
"feed_post_amount": 2,
"feed_updates_interval": 600,
"feed_posts_interval": 400
}
You can also run this application as a docker container.
You can pull the official docker image
docker pull ruthless/telegram-rss-bot
docker run -e TELEGRAM_AUTH_KEY="MY-TOKEN" ruthless/telegram-rss-bot
Execute the following steps:
git clone https://github.com/0x111/telegram-rss-bot
docker build -t telegram-rss-bot:latest .
docker run --name telegram-rss-bot -e TELEGRAM_AUTH_KEY="MY-TOKEN" -d telegram-rss-bot:latest
Advisory: You should respect the rate limiting of the Telegram API (More info about this: https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this)
Feel free to open a PR if you find some bugs or have improvements (I am sure there can be many of those :))
If you find bugs but you have no idea how to fix them, please open an issue with a detailed description on how to reproduce the bug.