telegram-bot-sdk
telegram-bot-sdk copied to clipboard
unable to get callback data from full keyboard
public function handle()
{
$this->replyWithChatAction(['action' => Actions::TYPING]);
$update = $this->getUpdate()->getMessage();
$response = "Test Message";
$keyboard = Keyboard::make()
->row(
Keyboard::button(['text' => 'Help', 'callback_data' => '/start 1']),
Keyboard::button(['text' => 'Button 2', 'callback_data' => 'your_callback_data'])
)->setOneTimeKeyboard(true);
$this->replyWithMessage(['text' => $response, 'parse_mode' => 'markdown', 'reply_markup' => $keyboard]);
}
when i click the Help button, i dont receive any callback_data, i only receive Help from my webhook. how to i get callback data?
do u understand how it work?