Telegram bot that posts new hot stories from Stacker News to telegram channel
Bot uses Telegram Bot API to post messages to the telegram channel with sendMessage request
- Clone this project
- Run
pip3 install -r requirements.txt
to install dependencies - Create your bot via BotFather
- Rename
conf/config-sample.yaml
toconf/config.yaml
and- set
db_type
tosqlite
orredis
- replace
tg_chat_id
with your channel/chat/group id - replace
tg_token
with your bot token - you can also change the
db_name
,redis_url
,log_name
andlog_file
- set
- Run
python3 app.py
in the project folder - Use misc/stackernews.service to run the bot as a service
Link to join the channel: https://t.me/stackernewstop