driver-telegram icon indicating copy to clipboard operation
driver-telegram copied to clipboard

How to get callback_query_id into Conversation

Open Odilbukh opened this issue 2 years ago • 0 comments

  • BotMan Version: 2.7.6
  • PHP Version: 8.1
  • Messaging Service(s):
  • Cache Driver:
  • Laravel 9.11

Description:

How to get callback_query_id from ?

Steps To Reproduce:

 $this->ask($inline_keyboard, function (Answer $answer) use ($textMessage) {
            $selectedText = $answer->getText();
            $selectedValue = $answer->getValue();
            
            if ($selectedValue == "plus"){
                $this->bot->sendRequest('answerCallbackQuery', [
                    'callback_query_id' => 'HERE NEED callback_query_id',
                    'text' => "+ 1 товар"
                ]);
            }
        ........
        
        

image

Odilbukh avatar Jul 16 '22 07:07 Odilbukh