diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-08-01 05:00:58 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-08-01 05:00:58 +0300 |
commit | 131f6eba38734212e039845b6cd9deabbc9d978d (patch) | |
tree | 0b8fd790db07bc4a383ed01f03ec23acf3d46130 /telegram | |
parent | a595d9db0af3e5c08abf4df32de61e653af0711c (diff) |
Use previews only instead of TGS stickersv1.7.1
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/utils.go b/telegram/utils.go index e1e9317..cd25c22 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -770,7 +770,7 @@ func (c *Client) contentToFile(content client.MessageContent) (*client.File, *cl case client.TypeMessageSticker: sticker, _ := content.(*client.MessageSticker) file := sticker.Sticker.Sticker - if sticker.Sticker.Format.StickerFormatType() != client.TypeStickerTypeRegular && sticker.Sticker.Thumbnail != nil && sticker.Sticker.Thumbnail.File != nil { + if sticker.Sticker.Format.StickerFormatType() == client.TypeStickerFormatTgs && sticker.Sticker.Thumbnail != nil && sticker.Sticker.Thumbnail.File != nil { file = sticker.Sticker.Thumbnail.File } return file, nil |