mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 23:36:02 +00:00
Merge pull request #1265 from RockChinQ/feat/markdowncard
add support for markdown card in dingtalk & tg
This commit is contained in:
@@ -131,7 +131,8 @@ class DingTalkAdapter(adapter.MessagePlatformAdapter):
|
||||
client_id=config["client_id"],
|
||||
client_secret=config["client_secret"],
|
||||
robot_name = config["robot_name"],
|
||||
robot_code=config["robot_code"]
|
||||
robot_code=config["robot_code"],
|
||||
markdown_card=config["markdown_card"]
|
||||
)
|
||||
|
||||
async def reply_message(
|
||||
|
||||
@@ -207,6 +207,9 @@ class TelegramAdapter(adapter.MessagePlatformAdapter):
|
||||
"text": component['text'],
|
||||
}
|
||||
|
||||
if self.config['markdown_card'] is True:
|
||||
args["parse_mode"] = "MarkdownV2"
|
||||
|
||||
if quote_origin:
|
||||
args['reply_to_message_id'] = message_source.source_platform_object.message.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user