tanhongit/laravel-telegram-git-notifier-demo

The skeleton application for the Laravel framework.

dev-main 2024-04-25 04:02 UTC

This package is auto-updated.

Last update: 2024-04-25 04:02:45 UTC


README

This is a laravel demo app for using telegram-git-notifier package.

Requirements

Installation

Clone the repository

git clone git@github.com:tanhongit/laravel-telegram-git-notifier-demo.git

Composer install

composer install

Copy .env file

cp .env.example .env

Generate key

php artisan key:generate

Set your telegram bot token

TELEGRAM_BOT_TOKEN=your-telegram-bot-token

Set your telegram chat id

TELEGRAM_BOT_CHAT_ID=your-telegram-chat-id

Set your github webhook url

TGN_APP_URL=your-github-webhook-url

For this package, the webhook URL will be defined in config. So the default value will be http://localhost:8000/telegram-git-notifier

So you can set your webhook URL like this:

TGN_APP_URL=https://your-domain/telegram-git-notifier

Set chat ID or topic ID to notify

TELEGRAM_NOTIFY_CHAT_IDS="your-chat-id-1;your-chat-id-2"