Skip to content

Fix review issues from PR #1761#1762

Merged
JrooTJunior merged 3 commits intoaiogram:feature/api-9.4from
Latand:fix/api-9.4-review-fixes
Feb 10, 2026
Merged

Fix review issues from PR #1761#1762
JrooTJunior merged 3 commits intoaiogram:feature/api-9.4from
Latand:fix/api-9.4-review-fixes

Conversation

@Latand
Copy link
Contributor

@Latand Latand commented Feb 9, 2026

Summary

  • Fix Makefile reformat target scope inconsistency (ruff check --fix was using $(package_dir) instead of $(code_dir))
  • Add User.get_profile_audios() shortcut method (parallel to existing get_profile_photos())
  • Test ChatOwnerLeft with new_owner=None (edge case where owner left without designating successor)
  • Add VideoQuality type instantiation and Video.qualities nesting tests
  • Add User.get_profile_audios() shortcut test

Note

The ButtonStyle enum source URL in .butcher/enums/ButtonStyle.yml points to #chat instead of #inlinekeyboardbutton — see #1761 (comment)

Test plan

  • All 231 message type tests pass (including new ChatOwnerLeft edge case)
  • All 23 user type tests pass (including new get_profile_audios test)
  • All 3 VideoQuality tests pass
  • All method tests pass

🤖 Generated with Claude Code

@Latand Latand force-pushed the fix/api-9.4-review-fixes branch from 0e91922 to 27bf725 Compare February 9, 2026 19:06
Copy link
Contributor Author

@Latand Latand left a comment

Choose a reason for hiding this comment

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

self-reviewed

- Remove stray '-' artifact from GameHighScore docstring
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Latand Latand force-pushed the fix/api-9.4-review-fixes branch from 27bf725 to 9acc441 Compare February 9, 2026 21:30
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

✔️ Changelog found.

Thank you for adding a description of the changes

Copy link
Contributor

@Olegt0rr Olegt0rr left a comment

Choose a reason for hiding this comment

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

LGTM, but with minor code smells in tests

Copy link
Contributor Author

@Latand Latand left a comment

Choose a reason for hiding this comment

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

self reviewed

@JrooTJunior JrooTJunior merged commit 06bdae6 into aiogram:feature/api-9.4 Feb 10, 2026
2 checks passed
JrooTJunior added a commit that referenced this pull request Feb 10, 2026
* Bump API schema to version 9.4, add new object types, methods, and properties.

* Add tests for `ChatOwnerChanged` and `ChatOwnerLeft` message types

* Add tests for `GetUserProfileAudios`, `RemoveMyProfilePhoto`, and `SetMyProfilePhoto` methods

* Bump version

* Update Makefile variables and refactor `test_get_user_profile_audios.py`

* Document new features and updates from Bot API 9.4 in changelog

* Add `ButtonStyle` enum to represent button styles in the Telegram API

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring and butcher schema
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Fix ButtonStyle enum source URL (#chat -> #inlinekeyboardbutton)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Revert "Fix review issues from PR #1761"

This reverts commit 2184e98.

* Update source links for `ButtonStyle` documentation to reflect accurate API references

* Fix review issues from PR #1761 (#1762)

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Address review comments: use fixture and variables in tests, add changelog

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Address review follow-ups for PR #1762

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>

* Reformat code

* Shut up, ruff

---------

Co-authored-by: latand <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Kostiantyn Kriuchkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants