Skip to content

Fix live photo identification#1857

Open
OldBuddy wants to merge 3 commits into
aiogram:dev-3.xfrom
OldBuddy:bugfix/1841-live-photo
Open

Fix live photo identification#1857
OldBuddy wants to merge 3 commits into
aiogram:dev-3.xfrom
OldBuddy:bugfix/1841-live-photo

Conversation

@OldBuddy

@OldBuddy OldBuddy commented Jul 20, 2026

Copy link
Copy Markdown

Description

  • fix: invalid content_type property identification for a live photo message.
  • refactor: convert if blocks to match statement on content_type property.

Fixes #1841

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@github-actions

Copy link
Copy Markdown

❌ Changelog is required!

You need to add a brief description of the changes to the CHANGES directory.

Changes file should be named like <issue or PR number>.<category>.rst,
example 1234.bugfix.rst where 1234 is the PR or issue number and bugfix is the category.

The content of the file should be a brief description of the changes in
the PR in the format of a description of what has been done.

Possible categories are: feature, bugfix, doc, removal and misc.

@github-actions github-actions Bot added the 3.x Issue or PR for stable 3.x version label Jul 20, 2026
@OldBuddy OldBuddy changed the title Bugfix/1841 live photo Fix live photo identification Jul 20, 2026
@OldBuddy
OldBuddy marked this pull request as ready for review July 20, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Issue or PR for stable 3.x version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

message.content_type returns photo instead of live_photo for Live Photos

1 participant