[英]Is it possible to send markup (inline) keyboard along with the text message with Telegram TDLib via a none-bot account?
It says in Telegram Core Documentation here :它在 Telegram 核心文档中说:
Markup for replying to the message;
用于回复消息的标记; for bots only .
仅适用于机器人。
So it seems that inline keyboards with callbacks (reply_markup) are only for bots.like this:因此,带有回调(reply_markup)的内联键盘似乎仅适用于机器人。像这样:
$keyboard = [
['7', '8', '9'],
['4', '5', '6'],
['1', '2', '3'],
['0']
];
$reply_markup = $telegram->replyKeyboardMarkup([
'keyboard' => $keyboard,
'resize_keyboard' => true,
'one_time_keyboard' => true
]);
$response = $telegram->sendMessage([
'chat_id' => 'CHAT_ID',
'text' => 'Hello World',
'reply_markup' => $reply_markup
]);
But what I need is a keyboard with callback sent from a non-bot account to a two-side chat, not a channel or group.但我需要的是一个带有回调的键盘,该键盘从非机器人帐户发送到双方聊天,而不是频道或群组。 Is there a workaround?
有解决方法吗?
reply_markup
messages.reply_markup
消息。 Unfortunately this isn't that well documented, however on the buttons api it says:不幸的是,这并没有很好的记录,但是在按钮 api上它说:
Bots can attach a ReplyMarkup constructor to outgoing messages, to attach an inline keyboard or a custom reply keyboard.
机器人可以将 ReplyMarkup 构造函数附加到传出消息,以附加内联键盘或自定义回复键盘。
For now, there's no way to send 'buttons' as a regular telegram user.目前,无法以普通电报用户的身份发送“按钮”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.