danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.86k stars 662 forks source link

Issue with animated sticker #1267

Closed Konstantine-Nevzhunskyi closed 1 year ago

Konstantine-Nevzhunskyi commented 1 year ago

As I understand, $MadelineProto->downloadToBrowser($info) does not work as expected, if $info contains information of animated sticker. It returns .tgs file. If there is no way to display it in browser compatible type (video/gif), is there a way to downloadToBrowser thumbnail of animated sticker? Searched in docs for methods to work with media thumbnails, but didn't found anything related.

danog commented 1 year ago

This is intended, telegram animated stickers are distributed in tgs format and must be displayed using the lottie library: https://core.telegram.org/api/stickers#animated-stickers

Konstantine-Nevzhunskyi commented 1 year ago

This is intended, telegram animated stickers are distributed in tgs format and must be displayed using the lottie library: https://core.telegram.org/api/stickers#animated-stickers

Thank you. But is there a way to work with media thumbnails?