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
(async () => {
const client = new TelegramClient(new StringSession(stringSession), apiId, apiHash, {connection: ConnectionTCPObfuscated})
await client.connect();
const msgs = await client.getMessages("me", {
limit: 10,
});
console.log("the total number of msgs are", msgs.total);
console.log("what we got is ", msgs.length);
for (const msg of msgs) {
//console.log("msg is",msg); // this line is very verbose but helpful for debugging
console.log("msg text is : ", msg.text);
}
})();
But it's throwing a ReferenceError: ConnectionTCPObfuscated is not defined
what am I doing wrong?
The text was updated successfully, but these errors were encountered:
Following the documentation here to get my messages https://painor.gitbook.io/gramjs/getting-started/available-methods/getmessages
But it's throwing a
ReferenceError: ConnectionTCPObfuscated is not defined
what am I doing wrong?
The text was updated successfully, but these errors were encountered: