我正在尝试使用键盘方法制作电报机器人,但它一直告诉我“无效参数”。 我究竟做错了什么?
function Calling(){
var ID = "12345678"
var Text = "Hi there"
var TEST = {
"keyboard": [
[
"Row 1 a",
"Row 1 b"
],
[
"Row 2"
]
],
resize_keyboard: true,
one_time_keyboard: true
}
sendText(ID,Text,TEST);
}
function sendText(ChatID,Text1,key) {
var response = UrlFetchApp.fetch(url + "/sendmessage?chat_id=" + ChatID + "&text=" + Text1 + "&reply_markup="+ JSON.stringify(key));
代码错误:“参数无效”