Bot for Telegram that gets and posts news to a channel.
NFB_TELEGRAM_BOT_TOKEN
— token for Telegram Bot APINFB_TELEGRAM_CHANNEL_ID
— ID of the channel to post to, can be obtained via @JsonDumpBotNFB_DATABASE_DSN
— PostgreSQL connection stringNFB_FETCH_INTERVAL
— the interval of checking for new articles, default10m
NFB_NOTIFICATION_INTERVAL
— the interval of delivering new articles to Telegram channel, default1m
NFB_FILTER_KEYWORDS
— comma separated list of words to skip articles containing these wordsNFB_OPENAI_KEY
— token for OpenAI APINFB_OPENAI_PROMPT
— prompt for GPT-3.5 Turbo to generate summary
News Feed Bot can be configured with HCL config file. The service is looking for config file in following locations:
./config.hcl
./config.local.hcl
$HOME/.config/news-feed-bot/config.hcl
The names of parameters are the same except that there is no prefix and names are in lower case instead of upper case.