Closed saeed2922 closed 6 years ago
You can find more information on that subject in the telegram api docs here: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating Or check the readme for this code here: https://github.com/Eleirbag89/TelegramBotPHP#build-keyboards
my problem is choose contact and send to him
https://core.telegram.org/bots/api#inlinekeyboardbutton play with the _switch_inlinequery parameter
i use it but not work
$option = array( array( $telegram->buildInlineKeyBoardButton('Callback 1', $url = '', $callback_data = '1', $switch_inline_query= 'true'))); $keyb = $telegram->buildInlineKeyBoard($option); $content =array('chat_id' => $chat_id, 'reply_markup' => $keyb, 'text' => 'This is an InlineKeyboard Test with Callbacks');
@saeed2922 If you are using it without Webhook You need to specify the chat_id if u are using Webhooks u need to declare chat_id as $chat_id = $telegram->ChatID();
i want to learn how this section work
this is a section of t.me/music