Skip to content

Commit 39d86fa

Browse files
committed
fix: fix baidu bug
1 parent 22a4a3f commit 39d86fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

efb_telegram_master/slave_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def slave_message_location(self, msg: Message, tg_dest: TelegramChatID, msg_temp
785785
location_reply_markup = self.build_chat_info_inline_keyboard(msg, msg_template, reactions, reply_markup)
786786
name = html.escape(msg.text)
787787
content = html.escape(msg.author.long_name)
788-
baidu = f'https://api.map.baidu.com/marker?title={name}&content={content}&location={attributes.latitude},{attributes.longitude}&output=html&coord_type=gcj02'
788+
baidu = f'https://api.map.baidu.com/marker?location={attributes.latitude},{attributes.longitude}&title={name}&content={content}&output=html&coord_type=gcj02'
789789
# gaode require login on pc
790790
gaode = f'https://uri.amap.com/marker?position={attributes.longitude},{attributes.latitude}&name={name}&coordinate=gaode&callnative=1'
791791
tencent = f'https://apis.map.qq.com/uri/v1/marker?marker=coord:{attributes.latitude},{attributes.longitude};title:{content};addr:{name}'

0 commit comments

Comments
 (0)