Skip to content

Commit

Permalink
fix(telegram): add channelId to quote segment
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Mar 22, 2022
1 parent 9cdce19 commit 037ad24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/adapter/telegram/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ abstract class TelegramAdapter extends Adapter<BotConfig, AdapterConfig> {
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({
Expand Down

0 comments on commit 037ad24

Please sign in to comment.