Skip to content

Add support for thumbnail to media class#1594

Open
mtalaeii wants to merge 12 commits into
danog:v8from
mtalaeii:media_thumbs
Open

Add support for thumbnail to media class#1594
mtalaeii wants to merge 12 commits into
danog:v8from
mtalaeii:media_thumbs

Conversation

@mtalaeii

Copy link
Copy Markdown
Contributor
  • As we expected thumbnail always (even in bot api) is a single PhotoSize
  • We have separate Thumbnail class as it always send as separate media
  • We don't need videoThumb parameter as document and audio can have thumbnail too!!!

- As we expected thumbnail always (even in bot api) is a single PhotoSize
- We have separate Thumbnail class as it always send as separate media
- We don't need videoThumb parameter as document and audio can have thumbnail too!!!
- Change code structure
- cs-fix
- thanks @xtrime-ru
Comment thread src/EventHandler/Media.php Outdated
Comment thread src/MTProtoTools/FileServer.php Outdated
Comment thread src/MTProtoTools/Files.php Outdated
@mtalaeii mtalaeii requested a review from danog May 21, 2025 12:10
@sonarqubecloud

Copy link
Copy Markdown

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.

4 participants