Error: myAppStateKey ("ID here") not present
at encodeSyncdPatch (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js:105:15)
at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:555:32
at async Object.transaction (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:26)
at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:550:13
at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js:18:36 {
data: null,
isBoom: true,
isServer: false,
output: {
statusCode: 404,
payload: {
statusCode: 404,
error: 'Not Found',
message: 'myAppStateKey ("ID here") not present'
},
headers: {}
}
}
I get the above error whenever I try to use the chatModify function ,I checked my credentials file and there's a myAppStateKey present but I don't understand why it's not working for me.
The below code is the one I tried to use to modify the chat
Error: myAppStateKey ("ID here") not present at encodeSyncdPatch (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js:105:15) at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:555:32 at async Object.transaction (/root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js:136:26) at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js:550:13 at async /root/wabot/ANTIBUG/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js:18:36 { data: null, isBoom: true, isServer: false, output: { statusCode: 404, payload: { statusCode: 404, error: 'Not Found', message: 'myAppStateKey ("ID here") not present' }, headers: {} } }
I get the above error whenever I try to use the chatModify function ,I checked my credentials file and there's a myAppStateKey present but I don't understand why it's not working for me. The below code is the one I tried to use to modify the chat
await Taira.chatModify({ delete: true, lastMessages: [{ key: m.key, messageTimestamp: m.messageTimestamp }] }, m.sender);