Skip to content

Commit

Permalink
fix(telegram): missing quote.user (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Oct 16, 2023
1 parent 4cab923 commit 742a92c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adapters/telegram/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 742a92c

Please sign in to comment.