With the rapid development of the Internet 、 Under the needs of the people , It has entered the national wechat era . Aunt Zhang in the village , My father knows how to use wechat .
But when we are with friends , A loved one , When lovers talk , I guess everyone has experienced , That's what the wechat recall function mentioned , The other side withdrew a message .
A message of withdrawal , It's like a secret , Make you eager to find out ; Or as a decoy , A moment of intense interest . Do you want to know , What kind of sentence is that ? It's the truth that the other side accidentally told , It's still a mistake ?
All in all , The withdrawal message , It's amazing ×××. This is the time , It's time for the technicians to come out .
Python View wechat recall message reference code :
mport re import time import itchat from itchat.content import * @itchat.msg_register([TEXT, PICTURE, MAP, CARD, NOTE, SHARING, RECORDING, ATTACHMENT, VIDEO]) def text_reply(msg): print(msg['Text']) @itchat.msg_register([TEXT, PICTURE, MAP, CARD, NOTE, SHARING, RECORDING, ATTACHMENT, VIDEO]) @itchat.msg_register([TEXT, PICTURE, MAP, CARD, NOTE, SHARING, RECORDING, ATTACHMENT, VIDEO]) def text_reply(msg): if msg['Type'] == 'Text': reply_content = msg['Text'] elif msg['Type'] == 'Picture': reply_content = r" picture : " + msg['FileName'] elif msg['Type'] == 'Card': reply_content = r" " + msg['RecommendInfo']['NickName'] + r" Business card of " elif msg['Type'] == 'Map': x, y, location = re.search("<location x=\"(.*?)\" y=\"(.*?)\".*label=\"(.*?)\".*", msg['OriContent']).group(1, 2, 3) if location is None: reply_content = r" Location : latitude ->" + x.__str__() + " longitude ->" + y.__str__() else: reply_content = r" Location : " + location elif msg['Type'] == 'Note': reply_content = r" notice " elif msg['Type'] == 'Sharing': reply_content = r" Share " elif msg['Type'] == 'Recording': reply_content = r" voice " elif msg['Type'] == 'Attachment': reply_content = r" file : " + msg['FileName'] elif msg['Type'] == 'Video': reply_content = r" video : " + msg['FileName'] else: reply_content = r" news " friend = itchat.search_friends(userName=msg['FromUserName']) itchat.send(r"Friend:%s -- %s " r"Time:%s " r" Message:%s" % (friend['NickName'], friend['RemarkName'], time.ctime(), reply_content), toUserName='filehelper') itchat.send(r" I've received that you're 【%s】 Message sent 【%s】 Reply later .-- Wechat assistant (Python edition )" % (time.ctime(), reply_content), toUserName=msg['FromUserName']) itchat.auto_login() itchat.run()
This article is over here , But I sincerely suggest that , If it's a boyfriend or girlfriend , Don't use it Python Look at the , There are some things better not to know than to know , Personal experience ...
“ It is necessary to read thi
codec The origin of coding :