function execute(query) {
return new Promise(resolve => {
resolve(tdlib.td_json_client_execute(client, buildQuery(query)));
});
}
async function sendPasswordOnClick() {
const result = await execute({'@type': 'getChats',
'offset_order': '9223372036854775807',
'offset_chat_id': '0', 'limit': '10'});
console.log(result);
}
我正在尝试获取聊天列表,但出现错误
{“ @类型”:“错误”,“代码”:400,“消息”:“功能无法同步”}
请告诉我我在做什么错。谢谢!