【发布时间】:2017-04-10 19:27:19
【问题描述】:
我知道如何发送照片或文件并获取回调数据并回答它
现在如何在用户按下内联按钮时发送照片?
这是我的代码
$option = array(
array(
$telegram->buildInlineKeyboardButton($text="One","",$callback_data="One",""),
$telegram->buildInlineKeyboardButton($text="Two","",$callback_data="Two","")
)
);
$keyb = $telegram->buildInlineKeyBoard($option);
$content = array(
'chat_id' => $chat_id,
'reply_markup' => $keyb,
'text' => "One Or Two ?"
);
$telegram->sendMessage($content);
感谢任何答案
【问题讨论】: