-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: add show_caption_above_media
parameter to (Ext)Defaults
#4520
Conversation
Hi. Thanks for your PR. There is no need to ping us. We will reply when we have the time. |
There was a problem hiding this 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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shown above the media. Defaults to `None`. | |
shown above the media. Defaults to `None`. |
There was a problem hiding this comment.
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.
This comment was marked as spam.
This comment was marked as spam.
closing due to inactivity. @servusdei2018 feel free to reopen anytime if you want to continue working on this |
Fixes #4306
Summary
This patch introduces a default setting for the
show_caption_above_media
parameter in thetelegram.ext.Defaults
class. This enhancement streamlines the process of setting this parameter across various bot methods that support it, such assend_video
,send_photo
, andedit_message_caption
.Changes Made
show_caption_above_media
has been added to the(Ext)Bot
class.