Telegram bot that posts new hot stories from Hacker News to telegram channel
Bot runs on Google App Engine
Bot uses Hacker News API
It loads top stories every 10 minutes and posts any story that reached 100+ score
Bot uses Telegram Bot API to post messages to the telegram channel with sendMessage request
Bot used bit.ly and goo.gl for url shortening, but now it uses internal shortener
hackernewsbot
pip install -r requirements.txt -t lib/
to install dependenciessample_app.yaml
to app.yaml
and
yourappid
with your App engine app idYOUR_TELEGRAM_BOT_TOKEN
with your bot token@hacker_news_feed
in database.py
to your channel idgcloud app deploy app.yaml --project [YOUR_PROJECT_NAME]
in the project foldergcloud app deploy cron.yaml --project [YOUR_PROJECT_NAME]
in the project folderTo run server locally you can use dev_appserver.py
:
dev_appserver.py .