vysheng / tg

telegram-cli
GNU General Public License v2.0
6.49k stars 1.54k forks source link

peer.mark_read() on chat (Python) #636

Open joseluiscd opened 9 years ago

joseluiscd commented 9 years ago

When I try to mark a secret chat as read using python (3.4), I get the following message: "SystemError: new style getargs format but argument is not a tuple"

To mark the peer as read I have to do this:

peer.mark_read(peer) Which is not done the way the documentation says.

Surye commented 9 years ago

peer.mark_read(peer) will not work. the argument is only an optional callback, as the documentation says.

Secret Chats are currently unsupported in the python api, except for where they work. you could try peer.user.mark_read(), not sure which peer object you need to mark read on (the secret chat or the user).

joseluiscd commented 8 years ago

Same issue on regular chats (changing issue name). How to reproduce the bug:

Hope it helps!!