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'm trying to retreive all dialogs, but i keep getting an error message
(async function run() {
const result: Api.messages.Dialogs = await client.invoke(new Api.messages.GetDialogs();
console.log(result); // prints the result
})();
node:65944 UnhandledPromiseRejectionWarning: Error: Cannot cast undefined to any kind of undefined
at _raiseCastFail (\node_modules\telegram\Utils.js:21:11)
at Object.getPeer (\node_modules\telegram\Utils.js:836:9)
at Object. (\node_modules\telegram\client\users.js:242:26)
at Generator.next ()
at \node_modules\telegram\client\users.js:8:71
at new Promise ()
at __awaiter (\node_modules\telegram\client\users.js:4:12)
at Object.getInputEntity (\node_modules\telegram\client\users.js:198:12)
at TelegramClient.getInputEntity (\node_modules\telegram\client\TelegramClient.js:198:28)
at \node_modules\telegram\tl\api.js:129:56
The text was updated successfully, but these errors were encountered:
I'm trying to retreive all dialogs, but i keep getting an error message
node:65944 UnhandledPromiseRejectionWarning: Error: Cannot cast undefined to any kind of undefined
at _raiseCastFail (\node_modules\telegram\Utils.js:21:11)
at Object.getPeer (\node_modules\telegram\Utils.js:836:9)
at Object. (\node_modules\telegram\client\users.js:242:26)
at Generator.next ()
at \node_modules\telegram\client\users.js:8:71
at new Promise ()
at __awaiter (\node_modules\telegram\client\users.js:4:12)
at Object.getInputEntity (\node_modules\telegram\client\users.js:198:12)
at TelegramClient.getInputEntity (\node_modules\telegram\client\TelegramClient.js:198:28)
at \node_modules\telegram\tl\api.js:129:56
The text was updated successfully, but these errors were encountered: