Open joseluiscd opened 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).
Same issue on regular chats (changing issue name). How to reproduce the bug:
peer.mark_read()
to the end of on_msg_receive
function.SystemError: new style getargs format but argument is not a tuple
exception, and chat is not marked as read. In the code block of python-tg.c, lines 992 to 997, the PyErr_Print();
is executed (I get "This is an error!!" when I change it to else{ printf("This is an error!!\n"); PyErr_Print();}
)Hope it helps!!
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: