ADVANCED_BOT_CODINGS Telegram 333
🔗 Advanced Link Shortner BJS

💧 Command :-

/start

💻 BJS :-
Bot.sendMessage("Welcome To SL Link Shortner Bot.\n\nSend Any Link I Will Short It")

💧 Command :- *

💻 BJS :-
function validURL(url) {
var regex = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/
return regex.test(url)
}

if (validURL(message)) {
HTTP.post({
url: "https://slweb.tk/api/url/add",
success: "/onDone",
body: {
url: message
},
headers: {
Authorization: "Bearer key",
"Content-Type": "application/json"
}
})
//Remove key and add your api key
} else {
Bot.sendMessage("Wrong URL\nExample :
https://youtube.com",{is_reply:true})
}


💧 Command :-
/onDone

💻 BJS :- var Data = JSON.parse(content)
var Short_Link = Data.shorturl

let err = Data.error

if (err == "0") {
Bot.sendMessage("\nShort Link : "+Short_Link+"\n",{is_reply:true,disable_web_page_preview:true})
return
}

Bot.sendMessage("Enter Correct Api Key,",{is_reply:true})


Get Your Api Key From https://slweb.tk/ !

Credit - @TricksXTechOwner



tgoop.com/Advanced_Bot_Codings/333
Create:
Last Update:

🔗 Advanced Link Shortner BJS

💧 Command :-

/start

💻 BJS :-
Bot.sendMessage("Welcome To SL Link Shortner Bot.\n\nSend Any Link I Will Short It")

💧 Command :- *

💻 BJS :-
function validURL(url) {
var regex = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/
return regex.test(url)
}

if (validURL(message)) {
HTTP.post({
url: "https://slweb.tk/api/url/add",
success: "/onDone",
body: {
url: message
},
headers: {
Authorization: "Bearer key",
"Content-Type": "application/json"
}
})
//Remove key and add your api key
} else {
Bot.sendMessage("Wrong URL\nExample :
https://youtube.com",{is_reply:true})
}


💧 Command :-
/onDone

💻 BJS :- var Data = JSON.parse(content)
var Short_Link = Data.shorturl

let err = Data.error

if (err == "0") {
Bot.sendMessage("\nShort Link : "+Short_Link+"\n",{is_reply:true,disable_web_page_preview:true})
return
}

Bot.sendMessage("Enter Correct Api Key,",{is_reply:true})


Get Your Api Key From https://slweb.tk/ !

Credit - @TricksXTechOwner

BY Advanced Bot Codings™


Share with your friend now:
tgoop.com/Advanced_Bot_Codings/333

View MORE
Open in Telegram


Telegram News

Date: |

The court said the defendant had also incited people to commit public nuisance, with messages calling on them to take part in rallies and demonstrations including at Hong Kong International Airport, to block roads and to paralyse the public transportation system. Various forms of protest promoted on the messaging platform included general strikes, lunchtime protests and silent sit-ins. A vandalised bank during the 2019 protest. File photo: May James/HKFP. best-secure-messaging-apps-shutterstock-1892950018.jpg So far, more than a dozen different members have contributed to the group, posting voice notes of themselves screaming, yelling, groaning, and wailing in various pitches and rhythms. How to Create a Private or Public Channel on Telegram?
from us


Telegram Advanced Bot Codings™
FROM American