pygooglevoice icon indicating copy to clipboard operation
pygooglevoice copied to clipboard

Fix for Deleting Messages

Open jdulb17 opened this issue 8 years ago • 0 comments

I apologize for posting this as an issue as opposed to something else (I just recently started using Github more, so I'm still trying to understand Pull Requests/etc.). I have been trying to figure out how to make the delete function work for the messages. I found a simple fix that seems to work so far: In the __messages_post & delete function in the Voice.py file, I removed the if isinstance(msg, Message): statement. Then, instead of calling the delete function as defined previously: voice.delete(msg) , I now call it as follows: voice.delete(msg["id"]) . This seems to work for me for deleting messages, so I figured I would pass it along to anyone struggling with this problem!

jdulb17 avatar Apr 23 '17 21:04 jdulb17