From 742a92ce1c33f7d7a2a5d599783bf1fb4bb7c4fc Mon Sep 17 00:00:00 2001 From: idanran <96647698+idanran@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:33:40 +0800 Subject: [PATCH] fix(telegram): missing quote.user (#171) --- adapters/telegram/src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/adapters/telegram/src/utils.ts b/adapters/telegram/src/utils.ts index e07ef7cb..2ad12a0c 100644 --- a/adapters/telegram/src/utils.ts +++ b/adapters/telegram/src/utils.ts @@ -151,6 +151,7 @@ export async function decodeMessage( // topic messages are reply chains, if a message is forum_topic_created, the session shoudn't have a quote. if (data.reply_to_message && !(data.is_topic_message && data.reply_to_message.forum_topic_created)) { await decodeMessage(bot, data.reply_to_message, message.quote = {}, null) + message.quote.user = decodeUser(data.reply_to_message.from) } // make sure text comes first so that commands can be triggered