0.1.0 • Published 10 years ago
telegit v0.1.0
telegit
GitHub web hooks for your Telegram groups
Setup
git clone https://github.com/FruitieX/telegitcd telegitmkdir ~/.telegit && cp config.example.js ~/.telegit/config.js- Set up your GitHub web hooks. Do this from your repository settings ->
Webhooks & services.
- Payload URL should point to your machine, port 3420, default callback
path is
/github/callback. For example: http://example.com:3420/github/callback - Content type should be left as
application/json - Set up a secret so others can't send fake events to your bot. Note the secret down, you'll need it soon.
- Remember to pick
Send me everythingorLet me select individual eventsto choose which events you want to see on Telegram.
- Payload URL should point to your machine, port 3420, default callback
path is
- Set up a Telegram bot with BotFather, store the API token somewhere safe, you'll need it in the next step
- Edit the default config:
$EDITOR ~/.telegit/config.js npm start- Now invite your bot to a group and greet it with
/gitstart
You can stop the bot from sending messages with /gitstop.
0.1.0
10 years ago