This project is closed because twitter api doesn't support free access from 2023/02/09.
This project uses twitter API to catch @Strangestone tweet (Tawawa on monday) and then uses telegram bot to send content of tweet for user or group.
Uses cron to schedule for building on Github Actions.
Mandarin introduction : Link
- Create a telegram bot. How to Create telegram bot.
- Get bot id and user id(chat id). StackOverflow - Telegram Bot - how to get a group chat id?
- Create a twitter developer project and get bearer_token. Twitter developer Documentation
- Clone this project and push this project to your repo.
- Set three environment secrets. Please check secrets name and .github/workflows/main.yml parameters, make sure they are same. Using environments for deployment
- TELEGRAM_TO : Your telegram userId or chatId.
- TELEGRAM_TOKEN : Your telegram bot token.
- TWITTER_BEARER_TOKEN : Your twitter bearer_token.
- Set Github Action and edit .github/workflows/main.yml to test. (cron parameter or option of "on")
- (optional) If you want to catch other twitter users' tweet, just edit parameter
sample_rules
and set condition, you can refer my project for DouKiChan(がんばれ同期ちゃん). Link
These packages I use and refer, THANKS!!