click_inline_button
Click an inline callback button on a Telegram message by providing chat, message ID, and button identifier (data, data_hex, or text). Returns the button's response popup, alert, url, or cache_time.
Instructions
点击某条消息附带的 inline 按钮(callback 类型)。
定位按钮的三种方式,至少提供一个:
data: 按钮的 callback data(UTF-8 字符串,最常见,如 "confirm:42");data_hex: callback data 的十六进制字节串,用于二进制数据;text: 按钮显示的文字(同一消息里必须唯一)。
Args: chat: 消息所在对话。 message_id: 带 inline 按钮的消息 ID。 data: 按钮 callback data 的 UTF-8 文本。 data_hex: 按钮 callback data 的十六进制表示。 text: 按钮显示的文字。
Returns:
bot 返回的响应:message(弹窗文字)、alert(True 为强制 alert)、
url(有则为跳转链接)、cache_time(客户端缓存秒数)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| data | No | ||
| text | No | ||
| data_hex | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||