【发布时间】:2021-01-29 09:38:53
【问题描述】:
我当前的脚本是:
function EnviarTelegram(botSecret, chatId, body) {
var response = UrlFetchApp.fetch("https://api.telegram.org/bot" + botSecret + "/sendMessage?text=" + encodeURIComponent(body) + "&chat_id=" + chatId + "&parse_mode=HTML");
}
我用来发送消息的 Google 表格中的公式是:
=EnviarTelegram("Code to Bot","Code to ChatId","Created Message")
我希望能够创建以下消息:
"Full list of games tomorrow
Click here to access"
在Click here to access 我希望有一个超链接,例如:www.google.com/testtesttesttest
有什么方法可以调整脚本或为此创建的文本?
【问题讨论】:
标签: google-apps-script google-sheets telegram telegram-bot