nodegin / tglib

TDLib (Telegram Database library) bindings for Node.js
114 stars 16 forks source link

viewMessages #23

Closed proboys closed 6 years ago

proboys commented 6 years ago

how to use method viewMessages? this way doesn't work:

const result = await client.fetch({
    '@type': 'viewMessages',
    'chat_id': 47543915,
    'message_ids': [8013217792]
})
nodegin commented 6 years ago

Hello, what the result looks like? Can you try use client._send instead and see what is returned.

proboys commented 6 years ago

fetch returns {'@type':'ok'}. _send returns null

proboys commented 6 years ago

and please change credentials to auth in readme.md

nodegin commented 6 years ago

Hi, sorry for the confusion, I have fixed the README.md typo.

Have you tried setting the force_read property to true?

proboys commented 6 years ago

thank you! it works

nodegin commented 6 years ago

Good to hear that!