Skip to content

Commit

Permalink
[ Jessi-md 4.8.2 ⏱️ ]
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteshadowofficial authored Jan 20, 2024
1 parent e8a8d75 commit 60bd579
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/tools-tourl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import uploadImage from '../lib/uploadImage.js'
let handler = async (m) => {
let q = m.quoted ? m.quoted : m
let mime = (q.msg || q).mimetype || q.mediaType || ''
if (!mime) throw `reply picture|video|audio|sticker|document with command .tourl`
let isTele = /image\/(png|jpe?g|gif)|video\/mp4/.test(mime)
let media = await q.download()
if (isTele && media.length < 5242880) {
Expand Down

0 comments on commit 60bd579

Please sign in to comment.