jaraco / googlevoice

Python Google Voice library based on pygooglevoice
MIT License
111 stars 32 forks source link

Delete message functionality is not working #3

Closed chotaGit closed 6 years ago

chotaGit commented 6 years ago

Module (voice.py)

def __messages_post(self, page, *msgs, **kwargs):
    """
    Performs message operations, eg deleting,staring,moving
    """
    data = kwargs#.items()
    for msg in msgs:
        if isinstance(msg, util.Message):
            msg = msg.id
        data += (('messages', msg),)
    return self.__do_special_page(page, dict(data))

Error Message

File "D:\Apps\Python\lib\site-packages\googlevoice\voice.py", line 335, in __messages_post data += (('messages', msg),) TypeError: unsupported operand type(s) for +=: 'dict' and 'tuple'

jaraco commented 6 years ago

@chotaGit, would you try with the latest master? pip install git+https://github.com/jaraco/googlevoice.