Answer the question
In order to leave comments, you need to log in
How to implement the setMyCommands(telegram BOT API) method in Google Apps Script?
var token = "123456......";
var url = "https://api.telegram.org/bot" + token;
function setMyCommands(){
var botCommand = {
"commands": [
{
"command": "alert",
"description": "text"
},
{
"command": "start",
"description": "text"
}
]
}
var data = url + "/setMyCommands"
var response = UrlFetchApp.fetch(data,botCommand);
Logger.log(response.getContentText())
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question