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

copy_message does not copy the reply_markup from the original message #2421

Open
SSxQ opened this issue Nov 19, 2024 · 3 comments
Open

copy_message does not copy the reply_markup from the original message #2421

SSxQ opened this issue Nov 19, 2024 · 3 comments

Comments

@SSxQ
Copy link

SSxQ commented Nov 19, 2024

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? 4.24.0

  2. What OS are you using? Windows 11 21H2

  3. What version of python are you using? 3.10.8

I have a chat where I added a bot and made it an admin. The chat contains messages that contain inline buttons. Using the copy_message method, I wanted to copy the message with the buttons through the bot, but the body of the message is copied except reply_markup. Is this a library or telegram limitation? I did not find any restrictions in the documentation

@SSxQ
Copy link
Author

SSxQ commented Nov 19, 2024

At the same time, forward_message works fine, forwards messages along with buttons

@Badiboy
Copy link
Collaborator

Badiboy commented Nov 20, 2024

I'll take a look if it is possible to save markup on copy.

PS. Forward works on different principles.

@coder2020official
Copy link
Collaborator

No. This is a telegram limitation it seems. If you want to copy the reply markup too, you should pass it on as a parameter to copy_message.

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

3 participants