We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
The method telebot.TeleBot.copy_message has wrong type of return data specified in the documentation:
:return: On success, the sent Message is returned. :rtype: :class:`telebot.types.Message`
In fact this method returns types.MessageID that can be seen at the beginning of the method declaration.
types.MessageID
It's also interesting why this method can't return telebot.types.Message as all similar methods (like send_message, forward_message) do.
telebot.types.Message
send_message
forward_message
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Done, please check the pull request #2095.
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
4.10.0
Both Linux/Windows 10
Python 3.9.0
The method telebot.TeleBot.copy_message has wrong type of return data specified in the documentation:
In fact this method returns
types.MessageID
that can be seen at the beginning of the method declaration.It's also interesting why this method can't return
telebot.types.Message
as all similar methods (likesend_message
,forward_message
) do.The text was updated successfully, but these errors were encountered: