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

Skip to content

Feat: Deprecate payment attachment #4365

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 1 commit into from
Jul 9, 2024
Merged

Conversation

Poolitzer
Copy link
Member

closes #4350

@@ -1419,13 +1419,25 @@ def effective_attachment(
.. versionchanged:: NEXT.VERSION
:attr:`paid_media` is now also considered to be an attachment.

.. deprecated:: NEXT.VERSION
:attr:`successful_payment` will be removed in future major versions.
Copy link
Member

Choose a reason for hiding this comment

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

the "major" is a bit confusing to me. Will it still be considered in minor version? same below.

Copy link
Member Author

Choose a reason for hiding this comment

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

I took that wording from https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram%2F_passport%2Fpassportfile.py#L112

My understanding is that related to the stability policy the "next" major version removes it

Copy link
Member

Choose a reason for hiding this comment

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

well, (git and) I will blame harshil, then :D I understand what it's supposed to mean, just stumbled on it on first read … If you like to keep it this way, I'll just merge :)

Copy link
Member Author

Choose a reason for hiding this comment

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

We could rename both to mention the specific major version we drop the features?

Copy link
Member

Choose a reason for hiding this comment

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

Generally, I prefer not to mention specific versions beforehand - just gives use more freedom in case we need it …

Copy link
Member Author

Choose a reason for hiding this comment

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

Then Id stick with this

Copy link
Member

Choose a reason for hiding this comment

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

yea I put "major" versions cause of the stability policy

@Bibo-Joshi Bibo-Joshi merged commit 1714bfd into master Jul 9, 2024
27 of 29 checks passed
@Bibo-Joshi Bibo-Joshi deleted the deprecate-payment-attachement branch July 9, 2024 21:33
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 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.

[Discussion] What is an attachment
3 participants