mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-28 00:14:21 +00:00
add support for markdown card in dingtalk & tg
This commit is contained in:
@@ -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