Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions efb_wechat_comwechat_slave/MsgDeco.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,10 @@ def efb_share_link_wrapper(message: dict, chat) -> Message:

def efb_location_wrapper(msg: str) -> Message:
efb_msg = Message()
label = re.search('''label="(.*?)"''', msg).group(1)
text = re.search('''poiname="(.*?)"''', msg).group(1)
x = re.search('''x="(.*?)"''', msg).group(1)
y = re.search('''y="(.*?)"''', msg).group(1)
efb_msg.text = label
efb_msg.text = text
efb_msg.attributes = LocationAttribute(latitude=float(x),
longitude=float(y))
efb_msg.type = MsgType.Location
Expand Down