Telegram Bot API - 使用自定义键盘的ForceReply

时间:2016-04-20 18:26:39

标签: php telegram telegram-bot

通过阅读Telegram Bot API,我知道只能使用 ForceReply 自定义键盘。不是两个在同一时间。

但我怎么知道用户在Custom Keybord上的输入是否是对机器人消息的回复?

我运行了这段代码(PHP):

apiRequest ( "sendMessage", array (
        "text" => "Choose option",
        'chat_id' => $chat_id,
        'reply_markup' => $keyboardOptions 
    )
);

导致:

screenshot

我知道我可以获得点击按钮的内容,但字段" reply_to_message "缺少(因为它没有回复)。

PollBot如何解决这个问题?看起来像ForceReply和Custom Keybord?

screenshot

0 个答案:

没有答案
相关问题