Spaces:
Paused
Paused
๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐ โก
commited on
Update tools-tinyshorturl.js
Browse files
plugins/tools-tinyshorturl.js
CHANGED
|
@@ -74,9 +74,31 @@ cmd({
|
|
| 74 |
|
| 75 |
const caption = ` \`SUBZERO URL SHORTENER\` \n\n\n*Original Link:* ${q}\n\n*Shortened Link:* ${result}\n\n> แดแดแดกแดสแดแด
สส แดส าสแดษดแด`;
|
| 76 |
|
| 77 |
-
|
| 78 |
} catch (error) {
|
| 79 |
console.error(error);
|
| 80 |
reply(`An error occurred: ${error.message}`);
|
| 81 |
}
|
| 82 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
const caption = ` \`SUBZERO URL SHORTENER\` \n\n\n*Original Link:* ${q}\n\n*Shortened Link:* ${result}\n\n> แดแดแดกแดสแดแด
สส แดส าสแดษดแด`;
|
| 76 |
|
| 77 |
+
/* await conn.sendMessage(m.chat, { text: caption }, { quoted: m });
|
| 78 |
} catch (error) {
|
| 79 |
console.error(error);
|
| 80 |
reply(`An error occurred: ${error.message}`);
|
| 81 |
}
|
| 82 |
});
|
| 83 |
+
*/
|
| 84 |
+
// Send the status message with an image
|
| 85 |
+
await conn.sendMessage(from, {
|
| 86 |
+
image: { url: `https://i.ibb.co/DR0k2XM/mrfrankofc.jpg` }, // Image URL
|
| 87 |
+
caption: caption,
|
| 88 |
+
contextInfo: {
|
| 89 |
+
mentionedJid: [m.sender],
|
| 90 |
+
forwardingScore: 999,
|
| 91 |
+
isForwarded: true,
|
| 92 |
+
forwardedNewsletterMessageInfo: {
|
| 93 |
+
newsletterJid: '120363304325601080@newsletter',
|
| 94 |
+
newsletterName: 'ใ ๐๐๐๐๐๐๐ ๐๐ ใ',
|
| 95 |
+
serverMessageId: 143
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
}, { quoted: mek });
|
| 99 |
+
|
| 100 |
+
} catch (e) {
|
| 101 |
+
console.error("Error in shortining URL:", e);
|
| 102 |
+
reply(`An error occurred: ${e.message}`);
|
| 103 |
+
}
|
| 104 |
+
});
|