With this package, you can create a Telegram bot to receive notifications from GitHub or GitLab events and manage customization through messages and buttons on Telegram.
- Send notifications of your GitHub/GitLab repositories to Telegram Bots, Groups, Super Groups (Multiple Topics), and Channels.
- The bot must be created using the BotFather
- PHP ^8.1
- Composer
- Core: Telegram Git Notifier
First, please clone and install this project via Composer:
composer require cslant/laravel-telegram-git-notifier
Publication of configuration files:
php artisan vendor:publish --provider="CSlant\LaravelTelegramGitNotifier\Providers\TelegramGitNotifierServiceProvider" --tag="config_jsons"
If you are using Linux, you need to change the owner of the configuration files to the web server user and group (e.g. www-data
).
The configuration files will be used to store the bot's settings and other information, so you need to change the owner of the configuration files to the web server user and group.
sudo php artisan config-json:change-owner www-data www-data
Note:
www-data
is the user and group of the web server, you can change it to your own user and group.- The first
www-data
is the user, and the secondwww-data
is the group. (You can also use only the firstwww-data
to represent both the user and the group)
...In construction...