wxpy
wxpy copied to clipboard
完全沒有辦法給自己發訊息,求救
看似很簡單,但我試了各種方法都沒法給自己發訊息,總是收到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")