ItChat
ItChat copied to clipboard
itchat.send_msg returns -1.
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': ''}>
Never get this error though, Is 'user' a real value or just an example of something like 'Anna', 'Jack' ?
Real user. I will retry using the library to make sure it was not my error.
Had you ever been login with this account? If your account was registerd after 2017, then it can't use this web mode.