Skip to content

Commit

Permalink
fix: improve in files
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBotz authored Aug 4, 2024
1 parent f4404dd commit d22b92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/file_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def rename_start(client, message):
filesize=humanbytes(rkn_file.file_size)
mime_type = rkn_file.mime_type
dcid = FileId.decode(rkn_file.file_id).dc_id
extension_type = mime_type.split('/')[2]
extension_type = mime_type.split('/')[0]
if not Config.STRING_SESSION:
if rkn_file.file_size > 2000 * 1024 * 1024:
return await message.reply_text("Sᴏʀʀy Bʀᴏ Tʜɪꜱ Bᴏᴛ Iꜱ Dᴏᴇꜱɴ'ᴛ Sᴜᴩᴩᴏʀᴛ Uᴩʟᴏᴀᴅɪɴɢ Fɪʟᴇꜱ Bɪɢɢᴇʀ Tʜᴀɴ 2Gʙ+")
Expand Down

0 comments on commit d22b92b

Please sign in to comment.