Fix Message Forward (#3910)

This commit is contained in:
BenyFilho 2025-11-04 16:09:42 -03:00 • committed by GitHub
commit 829dd7f6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ exports.LoadUtils = () => {
window.WWebJS.forwardMessage = async (chatId, msgId) => {
const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0];
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
return window.Store.ForwardUtils.forwardMessages(chat, [msg], true, true);
return await window.Store.ForwardUtils.forwardMessages({'chat': chat, 'msgs' : [msg], 'multicast': true, 'includeCaption': true, 'appendedText' : undefined});
};
window.WWebJS.sendSeen = async (chatId) => {