Skip to content

Commit 72edfed

Browse files
committed
feat: add tencent map button
1 parent c8cd7d7 commit 72edfed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

efb_telegram_master/slave_message.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,9 @@ def slave_message_location(self, msg: Message, tg_dest: TelegramChatID, msg_temp
788788
baidu = f'https://api.map.baidu.com/marker?title={name}&content={content}&location={attributes.latitude},{attributes.longitude}&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'
791+
tencent = f'https://apis.map.qq.com/uri/v1/marker?marker=coord:{attributes.latitude},{attributes.longitude};title:{content};addr:{name}'
791792
location_reply_markup.inline_keyboard = location_reply_markup.inline_keyboard + [
792-
[InlineKeyboardButton(self._('Baidu'), url=baidu), InlineKeyboardButton(self._('Gaode'), url=gaode)],
793+
[InlineKeyboardButton(self._('Baidu'), url=baidu), InlineKeyboardButton(self._('Gaode'), url=gaode), InlineKeyboardButton(self._('Tencent'), url=tencent)],
793794
]
794795

795796
# TODO: Use live location if possible? Lift live location messages to EFB Framework?

0 commit comments

Comments
 (0)