Skip to content

Commit c0a4d3a

Browse files
committed
feat: reply back to original message
1 parent 02ab2e8 commit c0a4d3a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/components/events/message.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ export default async function (msg: Message, type: string): Promise<void> {
220220
messageBody,
221221
options,
222222
);
223+
224+
if (msg.hasQuotedMsg) {
225+
const quoted = await msg.getQuotedMessage();
226+
return await quoted.reply(messageBody);
227+
}
228+
223229
return await originalReply(messageBody, chatId, options);
224230
};
225231

0 commit comments

Comments
 (0)