8000 feat: add `show_caption_above_media` parameter to `(Ext)Defaults` by servusdei2018 · Pull Request #4520 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content

feat: add show_caption_above_media parameter to (Ext)Defaults #4520

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

Closed
wants to merge 2 commits into from
Closed

feat: add show_caption_above_media parameter to (Ext)Defaults #4520

wants to merge 2 commits into from

Conversation

servusdei2018
Copy link

Fixes #4306

Summary

This patch introduces a default setting for the show_caption_above_media parameter in the telegram.ext.Defaults class. This enhancement streamlines the process of setting this parameter across various bot methods that support it, such as send_video, send_photo, and edit_message_caption.

Changes Made

  • A new property show_caption_above_media has been added to the (Ext)Bot class.

@servusdei2018
Copy link
Author

cc @Poolitzer @Bibo-Joshi

@Bibo-Joshi
Copy link
Member

Hi. Thanks for your PR. There is no need to ping us. We will reply when we have the time.

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. Please see my comments below. Also, be sure that you have read our contribution guide and include the check list in the PR description.

@@ -114,6 +114,11 @@ async def main():
do_quote(:obj:`bool`, optional): |reply_quote|

.. versionadded:: 20.8

show_caption_above_media (:obj:`bool`, optional): Indicates whether the caption should be
shown above the media. Defaults to `None`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
shown above the media. Defaults to `None`.
shown above the media. Defaults to `None`.

Copy link
Member

Choose a reason for hiding this comment

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

this is not how we implement Defaults. Please have a look at the methods _insert_defaults and _insert_defaults_for_ilq_results. Note that changes will also be necessary for Bot. Finally, we will need new unit tests for this.

@Bibo-Joshi Bibo-Joshi added the 📋 pending-reply work status: pending-reply label Oct 30, 2024
@krishna931074

This comment was marked as spam.

@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
@Bibo-Joshi
Copy link
Member

closing due to inactivity. @servusdei2018 feel free to reopen anytime if you want to continue working on this

@Bibo-Joshi Bibo-Joshi closed this Nov 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔌 enhancement pr description: enhancement 📋 pending-reply work status: pending-reply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add show_caption_above_media parameter to Defaults
4 participants
0