Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2004·telegraf

sendMediaGroup reply_parameters not working

Author: mat-twgCreated Jul 1, 2024Updated May 5, 2026

Judging by this update https://core.telegram.org/bots/api-changelog#december-29-2023 everything should work with reply_parameters, however: telegram.sendMediaGroup.reply_parameters not working but❗ reply_to_message_id still fine!

typescript
this.bot.telegram.sendMediaGroup(
  this.bot.chatId,
  form.files.map((file) => ({
    type: 'document',
    media: {
      source: file.buffer,
      filename: Buffer.from(file.originalname, 'latin1').toString(
        'utf-8',
      ),
    },
  })),
  {
    disable_notification: true,
    reply_to_message_id: message.message_id,
  } as any,
)

Source: telegraf/telegraf

View original on GitHubView discussion on GitHub