This bot fetches GitHub activities for a specified user and posts them to a Telegram channel. Working example: https://t.me/mygitupdates
- Fetches GitHub events for a specified user
- Posts formatted messages to a Telegram channel
- Handles rate limiting for both GitHub and Telegram APIs
- Supports various GitHub event types (Push, Create, Issues, Pull Request, Fork, Watch)
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with the following variables:TELEGRAM_BOT_TOKEN=your_telegram_bot_token TELEGRAM_CHANNEL_ID=your_telegram_channel_id GITHUB_USERNAME=your_github_username GITHUB_PERSONAL_ACCESS_TOKEN=your_github_personal_access_token PORT=3000 - Run the bot:
node app.js
- express
- node-telegram-bot-api
- axios
- dotenv
- limiter