有很多异步/等待函数是我不想使用的(在需要旧数据库功能的情况下),所以我开始使用Fetch。console.log('Connecting to opentdb instead of postgres.'); console.log(JSON.stringify(body)); // more code for processing here从本质上来说,这是可行的这很
我是API的新手,我想创建一个电报机器人与JavaScript,从超文本标记语言表单发送通知。我以这种方式将fetch命令与API一起使用: var chatID = "";
var api = "https://api.telegram.orgfetch(api + "New%20Message:%