ShahriarAbidbd/SmartifyXBotPublic ยท Bot Template
Do Tasks Smartly with SmartifyX ๐
Utilitydownloaderyoutubeinstagramfacebookspoilercontent-protection
25 commands2 envUpdated 1d agoCreated Jul 28, 2026
commands/img2.js
javascript ยท 39 lines
1/**#command2name: img23answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12var key = env.imgbb_api ; // get from api.imgbb.com13 14if (!content) {15 var link = "https://api.telegram.org/file/bot" + bot.token + "/" + options.result.file_path;16 link = encodeURI(link);17 await HTTP.get({18 url: "https://api.imgbb.com/1/upload?key=" + key + "&image=" + link,19 success: "img2",20 follow_redirects: true21 });22 return;23}24 25var res = JSON.parse(content);26if (res.success == true) {27 //Bot.inspect(res)28 29 Api.sendChatAction({30 chat_id: user.telegramid,31 action: "typing"32 });33 34 Bot.sendMessage("๐* Your Image Was Uploaded*\n\n๐ Link: " + res.data.url + "\n\n*๐ค Bot : @SmartifyXBot*", {35 disable_web_page_preview: true36 });37} else {38 Bot.sendMessage("Couldn't Upload Image ๐");39}