This is a laravel demo app for using telegram-git-notifier package.
- PHP ^8.1
- Laravel ^9.0
- laravel-telegram-git-notifier ^1.0
git clone git@github.com:tanhongit/laravel-telegram-git-notifier-demo.git
composer install
cp .env.example .env
php artisan key:generate
TELEGRAM_BOT_TOKEN=your-telegram-bot-token
TELEGRAM_BOT_CHAT_ID=your-telegram-chat-id
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
TELEGRAM_NOTIFY_CHAT_IDS="your-chat-id-1;your-chat-id-2"