Skip to content

Commit e146883

Browse files
fix(stickers): fix command in latest pillow and hydrogram
1 parent d59b02d commit e146883

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eduu/plugins/stickers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ async def kang_sticker(c: Client, m: Message, s: Strings):
183183
emoji=sticker_emoji,
184184
)
185185
],
186-
animated=animated,
187186
)
188187
)
189188
except PeerIdInvalid:
@@ -213,7 +212,7 @@ async def kang_sticker(c: Client, m: Message, s: Strings):
213212

214213
def resize_image(file: str) -> BytesIO:
215214
im = Image.open(file)
216-
im = ImageOps.contain(im, (512, 512), method=Image.ANTIALIAS)
215+
im = ImageOps.contain(im, (512, 512), method=Image.LANCZOS)
217216
image = BytesIO()
218217
image.name = "sticker.png"
219218
im.save(image, "PNG")

0 commit comments

Comments
 (0)