mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Fix
This commit is contained in:
parent
03fe29580b
commit
87a8211158
2 changed files with 3 additions and 3 deletions
|
|
@ -208,7 +208,7 @@ async def telegram_screenshot(client, message, frame_count):
|
||||||
mime = media.mime_type
|
mime = media.mime_type
|
||||||
size = media.file_size
|
size = media.file_size
|
||||||
|
|
||||||
if message.media.value == "document" and "video" not in mime:
|
if replymsg.media.value == "document" and "video" not in mime:
|
||||||
return await kirimPesan(message, "Can only generate screenshots from video file....", quote=True)
|
return await kirimPesan(message, "Can only generate screenshots from video file....", quote=True)
|
||||||
|
|
||||||
# Downloading partial file.
|
# Downloading partial file.
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ async def ddl_mediainfo(_, message, url):
|
||||||
out = output_[0] if len(output_) != 0 else None
|
out = output_[0] if len(output_) != 0 else None
|
||||||
content = f"""
|
content = f"""
|
||||||
<b>MissKatyBot MediaInfo</b>
|
<b>MissKatyBot MediaInfo</b>
|
||||||
|
<br>
|
||||||
<b>DETAILS</b>
|
<b>DETAILS</b>
|
||||||
<pre>{out or 'Not Supported'}</pre>
|
<pre>{out or 'Not Supported'}</pre>
|
||||||
"""
|
"""
|
||||||
|
|
@ -91,7 +91,7 @@ async def telegram_mediainfo(client, message):
|
||||||
<b>MissKatyBot MediaInfo</b>
|
<b>MissKatyBot MediaInfo</b>
|
||||||
<b>JSON</b>
|
<b>JSON</b>
|
||||||
<pre>{file_info}.type</pre>
|
<pre>{file_info}.type</pre>
|
||||||
|
<br>
|
||||||
<b>DETAILS</b>
|
<b>DETAILS</b>
|
||||||
<pre>{out or 'Not Supported'}</pre>
|
<pre>{out or 'Not Supported'}</pre>
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue