Skip to content

Commit

Permalink
fix(stickers): fix command in latest pillow and hydrogram
Browse files Browse the repository at this point in the history
  • Loading branch information
alissonlauffer committed Oct 15, 2024
1 parent d59b02d commit e146883
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eduu/plugins/stickers.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ async def kang_sticker(c: Client, m: Message, s: Strings):
emoji=sticker_emoji,
)
],
animated=animated,
)
)
except PeerIdInvalid:
Expand Down Expand Up @@ -213,7 +212,7 @@ async def kang_sticker(c: Client, m: Message, s: Strings):

def resize_image(file: str) -> BytesIO:
im = Image.open(file)
im = ImageOps.contain(im, (512, 512), method=Image.ANTIALIAS)
im = ImageOps.contain(im, (512, 512), method=Image.LANCZOS)
image = BytesIO()
image.name = "sticker.png"
im.save(image, "PNG")
Expand Down

0 comments on commit e146883

Please sign in to comment.