mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix TypeError in send_sticker
This commit is contained in:
parent
2e846f83ec
commit
3ec5f76b10
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class SendSticker(BaseClient):
|
|||
elif hasattr(sticker, "read"):
|
||||
file = self.save_file(sticker, progress=progress, progress_args=progress_args)
|
||||
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,
|
||||
attributes=[
|
||||
types.DocumentAttributeFilename(file_name=sticker.name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue