wxpy icon indicating copy to clipboard operation
wxpy copied to clipboard

完全沒有辦法給自己發訊息,求救

Open luckyvictor opened this issue 5 years ago • 0 comments

看似很簡單,但我試了各種方法都沒法給自己發訊息,總是收到error 1204,我已經把自己加了好友

收到error 1204

from wxpy import *

bot = Bot(console_qr=True, cache_path=True)
bot.self.send("Hello")

收到error 1204, 從print看到是找到自己的

from wxpy import *

bot = Bot(console_qr=True, cache_path=True)
my_friend = bot.friends().search(u'Victor')[0]
print(my_friend)
my_friend.send("Hello")

下面這次收到error 1,不能接受自己加自己好友

from wxpy import *

bot = Bot(console_qr=True, cache_path=True)
bot.self.add()
bot.self.accept()
bot.self.send("Hello")

luckyvictor avatar Jan 30 '20 11:01 luckyvictor