Mati365 / librus-api

Unofficial advanced node.js Librus scraping API(http://synergia.librus.pl/)
http://synergia.librus.pl/
118 stars 25 forks source link

Content is undefined #25

Closed MarcinK50 closed 3 years ago

MarcinK50 commented 3 years ago

Hi, today I wanted to read message content, but the API returning undefined My code:

client.inbox.listInbox(5).then(data => {
        const latestMessage = data[0]
        client.inbox.getMessage(5, latestMessage.id).then(data => console.log(data));
        console.log(latestMessage.content)
}
MarcinK50 commented 3 years ago

Oh, i must read the content in line 3 🤦