fix unpin messages (#3839)

Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
This commit is contained in:
RendyCraft047 2025-11-20 18:25:36 +07:00 • committed by GitHub
commit a31607e2dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -562,7 +562,7 @@ class Message extends Base {
*/
async unpin() {
return await this.client.pupPage.evaluate(async (msgId) => {
return await window.WWebJS.pinUnpinMsgAction(msgId, 2);
return await window.WWebJS.pinUnpinMsgAction(msgId, 2, 0);
}, this.id._serialized);
}