Creating a telegram bot keyboard using the example of the telegram library.
The core logic is in app/Services/TelegramBots/InfoBot/Keyboards
Button clicks are handled in CallbackqueryCommand. Handlers are added during the construction of the bot in InfoBot
If you want to run your bot, then you need to install:
- Copy .env.example and rename to .env
- Add your bot settings to variables TELEGRAM_API_KEY and TELEGRAM_USERNAME
- If you are using docker compose execute
docker-compose up --build -d
- Execute
composer install
- To start the bot, run
php artisan infobot:start
Test 2