Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed obsolete documentation. #4448

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

Conversation

Palaptin
Copy link
Contributor

Removed warnings of the thumbnail_url parameters, regarding the deprecated parameter thumb, as well as the optional annotation in the docs. Instead, added 'versionchanged' everywhere pointing to 20.5, the version where the thumb parameter was removed. Added a new substitutions ('thumbnail_url_mandatory') to global.rst, used in all these 'versionchanged'. Also removed the now obsolete 'Raises' paragraphs from all classes. For file inlinequeryresultvideo.py it was also necessary to remove the optional annotation as well as the warning from title parameter. this parameter had to be made optional earlier, to be able to made thumb_url/thumbnail_url optional.

Also had a look at the other inlinequeryresult* files, but there seems everything to be all right.

Removed warnings of the thumbnail_url parameters, regarding the deprecated parameter thumb, as well as the optional annotation in the docs.
Instead, added 'versionchanged' everywhere pointing to 20.5, the version where the  thumb parameter was removed.
Added a new substitutions ('thumbnail_url_mandatory') to global.rst, used in all these 'versionchanged'.
Also removed the now obsolete 'Raises' paragraphs from all classes.
For file inlinequeryresultvideo.py it was also necessary to remove the optional annotation as well as the warning from title parameter. this parameter had to be made optional earlier, to be able to made thumb_url/thumbnail_url optional.

Also had a look at the other inlinequeryresult* files, but there seems everything to be all right.
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.

Just one very slight nitpick. Thanks a lot for taking the time for this!

@Bibo-Joshi Bibo-Joshi merged commit bab361e into python-telegram-bot:doc-fixes Sep 1, 2024
5 of 23 checks passed
@Bibo-Joshi Bibo-Joshi mentioned this pull request Sep 1, 2024
1 task
Bibo-Joshi added a commit that referenced this pull request Sep 1, 2024
Co-authored-by: Harshil <[email protected]>
Co-authored-by: Palaptin <[email protected]>
@Palaptin Palaptin deleted the inline-thumbnail-parameter-doc-fix branch September 2, 2024 04:47
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants