mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix TypeError in send_sticker
This commit is contained in:
parent
2e846f83ec
commit
3ec5f76b10
@ -134,7 +134,7 @@ class SendSticker(BaseClient):
|
|||||||
elif hasattr(sticker, "read"):
|
elif hasattr(sticker, "read"):
|
||||||
file = self.save_file(sticker, progress=progress, progress_args=progress_args)
|
file = self.save_file(sticker, progress=progress, progress_args=progress_args)
|
||||||
media = types.InputMediaUploadedDocument(
|
media = types.InputMediaUploadedDocument(
|
||||||
mime_type=self.guess_mime_type(sticker) or "image/webp",
|
mime_type=self.guess_mime_type(sticker.name) or "image/webp",
|
||||||
file=file,
|
file=file,
|
||||||
attributes=[
|
attributes=[
|
||||||
types.DocumentAttributeFilename(file_name=sticker.name)
|
types.DocumentAttributeFilename(file_name=sticker.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user