From 037ad24e5e5a799140c3c643906d6db4bad636f5 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Wed, 23 Mar 2022 06:21:25 +0800 Subject: [PATCH] fix(telegram): add channelId to quote segment --- plugins/adapter/telegram/src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/adapter/telegram/src/http.ts b/plugins/adapter/telegram/src/http.ts index fe8299ff3a..1275f713cf 100644 --- a/plugins/adapter/telegram/src/http.ts +++ b/plugins/adapter/telegram/src/http.ts @@ -67,7 +67,7 @@ abstract class TelegramAdapter extends Adapter { author: adaptUser(message.reply_to_message.from), content: replayText ? segment.join(parsedReply) : undefined, } - segments.push({ type: 'quote', data: { id: message.reply_to_message.message_id } }) + segments.push({ type: 'quote', data: { id: message.reply_to_message.message_id, channelId: message.reply_to_message.chat.id } }) } if (message.location) { segments.push({