ItChat icon indicating copy to clipboard operation
ItChat copied to clipboard

itchat.send_msg returns -1.

Open markovejnovic opened this issue 5 years ago • 3 comments

The application seems broken and returns -1 without any error message upon an attempt to send a message.

itchat.send_msg('Hellouser', toUserName='user')
<ItchatReturnValue: {'BaseResponse': {'Ret': -1, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>

markovejnovic avatar Jan 09 '20 05:01 markovejnovic

Never get this error though, Is 'user' a real value or just an example of something like 'Anna', 'Jack' ?

shirubei avatar Jan 29 '20 05:01 shirubei

Real user. I will retry using the library to make sure it was not my error.

markovejnovic avatar Feb 06 '20 03:02 markovejnovic

Had you ever been login with this account? If your account was registerd after 2017, then it can't use this web mode.

shirubei avatar Feb 28 '20 05:02 shirubei