We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e846f8 commit 3ec5f76Copy full SHA for 3ec5f76
1 file changed
pyrogram/client/methods/messages/send_sticker.py
@@ -134,7 +134,7 @@ def send_sticker(
134
elif hasattr(sticker, "read"):
135
file = self.save_file(sticker, progress=progress, progress_args=progress_args)
136
media = types.InputMediaUploadedDocument(
137
- mime_type=self.guess_mime_type(sticker) or "image/webp",
+ mime_type=self.guess_mime_type(sticker.name) or "image/webp",
138
file=file,
139
attributes=[
140
types.DocumentAttributeFilename(file_name=sticker.name)
0 commit comments