You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to fill all the correct peer, and it's still an issue.
//error
Error updating filter: Error: Required object DialogFilter of undefined is undefined
at argToBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:111:23)
at C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:385:80
at Array.map ()
at VirtualClass.getBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:385:69)
at argToBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:113:22)
at VirtualClass.getBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:415:42)
at new RequestState (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\network\RequestState.js:13:29)
at Object.invoke (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\client\users.js:34:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async setFolder (C:\Users\Administrator\Desktop\GroupX\base.js:113:25)
The text was updated successfully, but these errors were encountered:
I'm trying to create chat folder with updatedialogfilter, and below is my code:
//code
await bot.invoke(new Api.messages.UpdateDialogFilter({
id: 3,
filter: new Api.DialogFilter({
id: 3,
title: "Chat folder",
includePeers: [],
pinnedPeers: [-1002233439929],
excludePeers: []
})
}));
console.log('Filter updated successfully.');
} catch (error) {
console.error('Error updating filter:', error);
}
I try to fill all the correct peer, and it's still an issue.
//error
Error updating filter: Error: Required object DialogFilter of undefined is undefined
at argToBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:111:23)
at C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:385:80
at Array.map ()
at VirtualClass.getBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:385:69)
at argToBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:113:22)
at VirtualClass.getBytes (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\tl\api.js:415:42)
at new RequestState (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\network\RequestState.js:13:29)
at Object.invoke (C:\Users\Administrator\Desktop\GroupX\node_modules\telegram\client\users.js:34:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async setFolder (C:\Users\Administrator\Desktop\GroupX\base.js:113:25)
The text was updated successfully, but these errors were encountered: