【发布时间】:2018-08-25 13:30:13
【问题描述】:
尝试为我的 Telegram 机器人创建内联按钮。这是我发送的请求,由于某种原因,我没有得到按钮,只有文本“内联键盘”
这是我的代码
$args = [
'chat_id' => $this->chat_id,
'parse_mode' => 'HTML',
'text' => 'Inline Keyboard',
'reply_markup' => [
'inline_keyboard' => [
[
[
'text' => 'Try me',
]
]
]
]
];
$send = $this->api_url . "/sendmessage?" . http_build_query($args);
file_get_contents($send);
【问题讨论】:
标签: php telegram-bot php-telegram-bot