๐ƒ๐€๐‘๐‘๐„๐‹๐‹ ๐Œ๐”๐‚๐‡๐„๐‘๐ˆ โšก commited on
Commit
63fd395
ยท
unverified ยท
1 Parent(s): c78b939

Update tools-tinyshorturl.js

Browse files
Files changed (1) hide show
  1. plugins/tools-tinyshorturl.js +23 -1
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
- 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
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ });