Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viewMessages #23

Closed
proboys opened this issue Jun 16, 2018 · 6 comments
Closed

viewMessages #23

proboys opened this issue Jun 16, 2018 · 6 comments

Comments

@proboys
Copy link

proboys commented Jun 16, 2018

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

const result = await client.fetch({
  	'@type': 'viewMessages',
  	'chat_id': 47543915,
  	'message_ids': [8013217792]
})
@nodegin
Copy link
Owner

nodegin commented Jun 17, 2018

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

@proboys
Copy link
Author

proboys commented Jun 17, 2018

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

@proboys
Copy link
Author

proboys commented Jun 17, 2018

and please change credentials to auth in readme.md

@nodegin
Copy link
Owner

nodegin commented Jun 17, 2018

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

Have you tried setting the force_read property to true?

@proboys
Copy link
Author

proboys commented Jun 17, 2018

thank you! it works

@nodegin nodegin closed this as completed Jun 17, 2018
@nodegin
Copy link
Owner

nodegin commented Jun 17, 2018

Good to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant