Skip to content

Note on editing with reply markups #3121

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

Merged
merged 7 commits into from
Jun 27, 2022
Merged

Note on editing with reply markups #3121

merged 7 commits into from
Jun 27, 2022

Conversation

ExalFabu
Copy link
Contributor

Hi, i would like to help and contribute on #3111
Following the official documentation, the methods i updated are:

  • Bot.edit_message_text
  • Bot.edit_message_caption
  • Bot.edit_message_media

I am not adding the note on the method Bot.edit_message_reply_markup since I don't think it makes sense in the first place, I hope I'm not wrong.

Screenshots:
edit_message_text

edit_message_caption

edit_message_media

ExalFabu added 3 commits June 26, 2022 00:07
Methods updated:
Bot.edit_message_text
Bot.edit_message_caption
Bot.edit_message_media
@ExalFabu ExalFabu marked this pull request as draft June 25, 2022 22:43
@ExalFabu ExalFabu marked this pull request as ready for review June 25, 2022 22:53
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the PR! I left two comments below.

I am not adding the note on the method Bot.edit_message_reply_markup since I don't think it makes sense in the first place, I hope I'm not wrong.

Why do yout think that it doesn't make sense to have the note there? people can still try to edit messages without reply markup of with ReplyKeyboardMarkup

ExalFabu and others added 4 commits June 26, 2022 17:49
todo: same in the other notes

Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
oops.. forgot about this one

Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
@ExalFabu
Copy link
Contributor Author

Why do yout think that it doesn't make sense to have the note there? people can still try to edit messages without reply markup of with ReplyKeyboardMarkup

As i understood it, the meaning of the note specifies that you can only edit the text of a message if it does not contain a reply markup, since that method is supposed to be used to edit the reply markup I thought it was kind of unnecessary.
Anyway I added it since I don't disagree with the "better safe than sorry" philosophy

@Bibo-Joshi Bibo-Joshi merged commit 85a1df9 into python-telegram-bot:doc-fixes Jun 27, 2022
@Bibo-Joshi
Copy link
Member

Thank you for the contribution! :)

Bibo-Joshi added a commit that referenced this pull request Jun 27, 2022
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
Co-authored-by: David <dsb321mp@gmail.com>
Co-authored-by: Harshil Mehta <37377066+harshil21@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
Co-authored-by: Alex <53974096+ExalFabu@users.noreply.github.com>
@ExalFabu ExalFabu deleted the note-on-editing-with-reply_markups branch June 27, 2022 17:53
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
@harshil21 harshil21 added this to the v20.0a2 milestone Jul 23, 2022
@harshil21 harshil21 added the ⚙️ documentation affected functionality: documentation label Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ documentation affected functionality: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants