Skip to content

Conversation

SimonDamberg
Copy link
Contributor

  • TelegramObject.__getitem__ now raises KeyError instead of returning None, and a special case is made for obj['from'] to look up obj['from_user'].
  • Removed __getitem__ override from Message
  • Test for Message changed to check for KeyError instead of None.

Checklist for PRs

  • Added .. versionadded:: version, .. versionchanged:: version or .. deprecated:: version to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)
  • Created new or adapted existing unit tests
  • Added myself alphabetically to AUTHORS.rst (optional)

@harshil21 harshil21 linked an issue Oct 9, 2021 that may be closed by this pull request
Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

There's a pre-commit test failing. Can you add a pylint ignore on that line? see the other places in the code on how to add a pylint ignore.

@harshil21 harshil21 added this to the v14 milestone Oct 9, 2021
@Bibo-Joshi
Copy link
Member

There's a pre-commit test failing. Can you add a pylint ignore on that line? see the other places in the code on how to add a pylint ignore.

rather just do what pylint suggests to do ;)

@SimonDamberg
Copy link
Contributor Author

Addressed your comments 😄

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.

Thanks for the PR! I left a bit of nitpicking below :)

@harshil21 harshil21 added the 📋 pending-reply work status: pending-reply label Oct 15, 2021
@Bibo-Joshi
Copy link
Member

@SimonDamberg are you still interested in finishing the PR? :)

@SimonDamberg
Copy link
Contributor Author

A lot of things came up at school and job. If someone wants to clean up and finish, feel free to do so :)

@Bibo-Joshi Bibo-Joshi removed the 📋 pending-reply work status: pending-reply label Nov 19, 2021
@Bibo-Joshi Bibo-Joshi requested a review from Poolitzer November 19, 2021 20:26
# Conflicts:
#	tests/test_conversationhandler.py
@Bibo-Joshi Bibo-Joshi added the 📋 pending-review work status: pending-review label Nov 21, 2021
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
@Bibo-Joshi Bibo-Joshi merged commit 3d80f5a into python-telegram-bot:v14 Nov 21, 2021
@Bibo-Joshi
Copy link
Member

Thanks for getting this started @SimonDamberg :)

@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2021
@harshil21 harshil21 removed the 📋 pending-review work status: pending-review label Feb 15, 2022
@Bibo-Joshi Bibo-Joshi added 🔌 bug pr description: bug and removed bug 🐛 labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔌 bug pr description: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Subscription: Doesn't work for 'from' & Other Improvements
5 participants