Skip to content

Commit

Permalink
Support for text mimetype only
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhhu authored Aug 14, 2023
1 parent 441fe75 commit 8adcf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def _(event):
message = input_str
elif event.reply_to_msg_id:
previous_message = await event.get_reply_message()
if previous_message.media:
if previous_message.document and "text" in previous_message.document.mime_type:
downloaded_file_name = await event.client.download_media(
previous_message,
"./resources/downloads",
Expand Down

0 comments on commit 8adcf3d

Please sign in to comment.