Simple tools for testing tg bot message
Download the composer
curl https://getcomposer.org/composer.phar -o composer.phar
Install the vendors
php composer.phar install
Edit the config file
cp config.php.example config.php
vim config.php
- Get the token from telegram
- Set the webhook enable when using in production mode
- Set the webhook url to your full domain url when webhook is enabled
-
Enable webhook on bot
api.php?action=set-web-hook
-
Remove webhhok on bot
api.php?action=remove-web-hook