zarincheg / telegram-bot-dialogs

The extension for Telegram Bot API PHP SDK that allows to implement dialogs in bots
MIT License
40 stars 29 forks source link

its not work with inline buttons #8

Open sinamiandashti opened 7 years ago

sinamiandashti commented 7 years ago

for this code in a dialog method

$inlineKeyboard = [
    'inline_keyboard' => [
        [['text' =>  'test1', 'callback_data' => '1']],
        [['text' =>  'test2', 'callback_data' => '1']],
        [['text' =>  'test3', 'callback_data' => '1']]
    ],
];

$this->telegram->sendMessage([
    'chat_id'      => $this->getChat()->getId(),
    'text'         => 'press one of th ekeys',
    'reply_markup' => json_encode($inlineKeyboard),
]);

after user clicked on one of the buttons nothing happened

it should proceed to next step