Skip to content

Commit 3ec5f76

Browse files
OctoNezddelivrance
authored andcommitted
Fix TypeError in send_sticker
1 parent 2e846f8 commit 3ec5f76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/client/methods/messages/send_sticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def send_sticker(
134134
elif hasattr(sticker, "read"):
135135
file = self.save_file(sticker, progress=progress, progress_args=progress_args)
136136
media = types.InputMediaUploadedDocument(
137-
mime_type=self.guess_mime_type(sticker) or "image/webp",
137+
mime_type=self.guess_mime_type(sticker.name) or "image/webp",
138138
file=file,
139139
attributes=[
140140
types.DocumentAttributeFilename(file_name=sticker.name)

0 commit comments

Comments
 (0)