Skip to content

Commit

Permalink
fix(telegram): should delete reply_to_message_id
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 23, 2023
1 parent 7905226 commit fe43d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adapters/telegram/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/adapter-telegram",
"description": "Telegram Adapter for Satorijs",
"version": "3.8.0",
"version": "3.8.1",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions adapters/telegram/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class TelegramMessageEncoder extends MessageEncoder<TelegramBot> {
const method = await appendAsset(this.bot, form, this.asset)
const result = await this.bot.internal[method](form as any)
await this.addResult(result)
delete this.payload.reply_to_message
delete this.payload.reply_to_message_id
this.asset = null
this.payload.caption = ''
}
Expand All @@ -75,7 +75,7 @@ export class TelegramMessageEncoder extends MessageEncoder<TelegramBot> {
disable_web_page_preview: !this.options.linkPreview,
})
await this.addResult(result)
delete this.payload.reply_to_message
delete this.payload.reply_to_message_id
this.payload.caption = ''
}
}
Expand Down

0 comments on commit fe43d5e

Please sign in to comment.