请告诉我,如何调整 Telegram 机器人中的内联(不回复)按钮的大小?该文档根本没有说明内联按钮的大小调整。
代码:
foreach ($sections as $section) {
$arrKeyboard[] = [
'text' => $section->getTitle(),
'callback_data' => '....'
];
}
$keyboard = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup([$arrKeyboard]);
$telegramBot->sendMessage($message->getChat()->getId(), $answer, 'markdown', false, null, $keyboard);