Closed Suphachock closed 3 weeks ago
wait a minute
Do you use FileStorage
? If not understand, please see https://linejs.evex.land
Now it error Request internal failed: {"code":"NOT_FOUND","reason":"there is no valid group key"} when call message.send()
Once you send a message in the group you want to send it to, try it out;
LINE does not generate shared keys by first.
Can u example code for send message to group?
Mean I can't send message to specify group by group id?
Possible. If you cannot follow this procedure, there may be a bug.
message.send({ to: "XXXXXXXXXXXXXXXXXX", text: "Hello, this is a message!", }); In first version I use this code for send message by specify group and it work but now in the last version why it cannot work?
linejs does not currently support generating encryption keys for groups. You will first need to generate a key by sending a message to the group in your LINE app.
And to send a message to a specific chat:
client.on("ready", async (user) => {
console.log(`Logged in as ${user.displayName} (${user.mid})`);
await client.sendMessage({to:"mid",text:"text!"})
});
I got and error when my line API send or reply message