Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward the reply_markup section #1997

Open
mstrong-tech opened this issue Jun 14, 2024 · 0 comments
Open

Forward the reply_markup section #1997

mstrong-tech opened this issue Jun 14, 2024 · 0 comments

Comments

@mstrong-tech
Copy link

mstrong-tech commented Jun 14, 2024

Context

  • Telegraf.js Version: ^4.16.3
  • Node.js Version: v18.18.2
  • Operating System: Mac

Minimal Example Code Reproducing the Issue

    const replyMarkup = {
      inline_keyboard: [
        [
          { text: "Analysis", callback_data: "analysisCB" },
          { text: "Strategy", callback_data: "strategyCB" },
        ],
        [
          { text: "Bot", url: "https://t.me/testbot" },
          { text: "X", url: "https://testbot.ai/" },
        ],
      ],
    }
    await ctx.reply("Testing...", {
      parse_mode: "HTML",
      // @ts-ignore
      disable_web_page_preview: true,
      reply_markup: replyMarkup,
    })

Expected Behavior

When I forward a message manually, the reply_markup should be included in the forwarded message. I know the API doesn't support it but is there any way to do it? For example, any event to listen forwarding messages?

Current Behavior

Only original text ("Testing...") is forwarded.

Error Message and Logs (export DEBUG='telegraf:*')

Please include any relevant log snippets or files here.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant