Search code examples
botswebhookstelegramtelegram-bottelegram-webhook

Why have I no callback query when i use URL in inline_keyboard?


Why have I no callback query when I use URL in inline_keyboard in telegram bot?

$keyboard = ['inline_keyboard'=>[[['text'=>'test','callback_data'=>'1', 'url'=>'https://t.me/']]]];

Solution

  • You can't use both callback_data and url together. Only one of them will work.