Closed Manjit2003 closed 3 years ago
Hey @ManjitPardeshi, looks like its broken now, Im working on fixing it, and should be ready in a bit, here's an example of how to use it:
class NewMessageObserver:
def on_ack_received(self, ev):
print(ev)
observer = NewMessageObserver()
driver.subscribe_acks(observer)
Inside on_ack_received
, ev is a list of all the new acks, which are objects with the ack code, the chat id, the message, etc:
The ack code can be 1: Sent 2: Received 3: Read
Please try with the latest version, 1.3.5
Thank you very much sir for your extremely fast reply.
@mrodal Eagerly looking for update
I had published the new version to pypi, but maybe you use it directly from the repo. I have now pushed the changes to master
@mrodal sir thanks for fixing the issue this fast... closing...
You forgot the ack 4 for ptt messages, wich indicates "voice message has been listened".
@mrodal Please help me in using the new_acks listener....