TikTok-Live-Connector
TikTok-Live-Connector copied to clipboard
[BUG] 'sendMessage' not working properly
Error: Failed to send chat message. Request failed with status code 403
let tiktokLiveConnection = new WebcastPushConnection(targetUsername, {
processInitialData: false,
sessionId: sessionID
});
tiktokLiveConnection.on('chat', data => {
comment = data.comment;
log(chalk.bold(`${data.uniqueId}`, chalk.white(': '), chalk.green(`${comment}`)));
// testing
setTimeout(() => {
tiktokLiveConnection.sendMessage(getRandomElement(messages)).catch(err => log(error(err)));
}, 3000);
});
However, there was cases where it did actually work and I got a lot of messages sent in sequence... There must be issue somewhere.
When I think about it, maybe the execution time needs to be synced or more cookie variables?
the same issue
same for me
I got the same issue
same here