1) I have webhook handler, it's finely process commands like /start. :
public function webhookHandler(PhpTelegramBotContract $telegram_bot){ $telegram_bot->handle(); }
Here is code for process /start command and display the button with a callback, its work fine:
Hello!
I try to process query from callback button :
1) I have webhook handler, it's finely process commands like /start. :
public function webhookHandler(PhpTelegramBotContract $telegram_bot){ $telegram_bot->handle(); }
Here is code for process /start command and display the button with a callback, its work fine:
`<?php
namespace Longman\TelegramBot\Commands\SystemCommands;
use Longman\TelegramBot\Commands\SystemCommand; use Longman\TelegramBot\Request; use Longman\TelegramBot\Entities\InlineKeyboard;
class StartCommand extends SystemCommand {
}`
3) when I send query from inline button, its not processing in command like this (as in https://github.com/php-telegram-bot/example-bot/blob/master/Commands/CallbackqueryCommand.php):
`<?php
namespace Longman\TelegramBot\Commands\SystemCommands;
use Longman\TelegramBot\Commands\SystemCommand; use Longman\TelegramBot\Request;
class TestCallbackCommand extends SystemCommand {
}`
So, how can i process queries from callback buttons in commands in Laravel? maybe you have some working examples?