|
发表于 2019-3-17 22:26:46
|
显示全部楼层
香港特别行政区*
窗口程序集名 | 保 留 | 保 留 | 备 注 | TelegramBotAPI, , 公开 | | | | 变量名 | 类 型 | 数组 | 备 注 | http | WinHttpW | | token | 文本型 | |
http. Auto (真)token = _token |
getUpdates | 存取键值表 | | |
offset | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | url | 文本型 | | | a | 存取键值表 | | |
url = 创建文本 (“https://api.telegram.org/bot{token}/getUpdates?offset={offset}”, 创建键值表 (“token”, token, “offset”, offset )) 调试输出 (url )http. Open (“GET”, url )http. SetRequestHeader (“User-Agent”, “ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2”, )http. Send ()调试输出 (http. GetResponseTextA ()) a. 从JSON载入 (http. GetResponseTextA (), , , )返回 (a )|
sendMessage_回复消息 | 存取键值表 | | |
chat_id | 文本型 | | | | text | 文本型 | | | | reply_to_message_id | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | url | 文本型 | | | a | 存取键值表 | | |
url = 创建文本 (“https://api.telegram.org/bot{token}/sendMessage?chat_id={chat_id}&text={text}&reply_to_message_id={reply_to_message_id}”, 创建键值表 (“token”, token, “text”, text, “chat_id”, chat_id, “reply_to_message_id”, reply_to_message_id )) 调试输出 (url )http. Open (“GET”, url )http. Send ()调试输出 (http. GetResponseTextA ()) a. 从JSON载入 (http. GetResponseTextA (), , , )返回 (a )|
sendMessage_内嵌键盘 | 存取键值表 | | |
chat_id | 文本型 | | | | text | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | url | 文本型 | | | a | 存取键值表 | | | reply_markup | 存取键值表 | | |
reply_markup. 置值 (“inline_keyboard”, 创建列表 (创建列表 (创建键值表 (“text”, “手动回调”, “callback_data”, “11111”)) )) 调试输出 (reply_markup. 到JSON (假, , , , )) url = 创建文本 (“https://api.telegram.org/bot{token}/sendMessage?chat_id={chat_id}&text={text}&reply_markup={reply_markup}”, 创建键值表 (“token”, token, “text”, text, “chat_id”, chat_id, “reply_markup”, reply_markup. 到JSON (假, , , , )) )调试输出 (url )http. Open (“GET”, url )http. Send ()调试输出 (http. GetResponseTextA ()) a. 从JSON载入 (http. GetResponseTextA (), , , )返回 (a )
|
|