Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sajalkmr/github-telegram-bot
https://github.com/sajalkmr/github-telegram-bot
github hacktoberfest nodejs telegram-bot
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sajalkmr/github-telegram-bot
- Owner: sajalkmr
- Created: 2024-10-23T15:31:00.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:06:32.000Z (23 days ago)
- Last Synced: 2024-10-24T00:19:54.896Z (22 days ago)
- Topics: github, hacktoberfest, nodejs, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram GitHub Bot
This bot fetches GitHub activities for a specified user and posts them to a Telegram channel.
Working example: https://t.me/mygitupdates## Features
- 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)
## Setup1. Clone the repository
2. Install dependencies: `npm install`
3. Create a `.env` file 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
```
4. Run the bot: `node app.js`## Dependencies
- express
- node-telegram-bot-api
- axios
- dotenv
- limiter
## License