Hello, Welcome to our new article in technostone.xyz, today we are going to learn in this article how you can make Google drive direct download link generator telegram bot, that is very easy way by using bots business app.
As you all must be awake that now when Surrey is possible on Telegram. Which we used to do in the website or other application, last time we told you how you can make YouTube thumbnail downloader telegram bot, similarly today we are going to teach you how to make google drive link generator telegram bot on telegram.
What Is google Drive Direct Link Generator telegram bot
How To Make GDrive Direct Link Generator Telegram Bot
Command 1:
- Command Name: /start
- BJS Code:
var button = [[{title:"🎬 Make Own Bot",url:"https://www.youtube.com/channel/UCMhd_HrdADzW-AU-ni5_-Nw"}],
[{title:"❤️ Share",url:"https://t.me/share/url?text=please joinn@PR_robotsn"},{title:"🛡 Official Channel",url:"https://t.me/PR_robots"}]]
Bot.sendInlineKeyboard(button , "*Hᴇʏ, Nɪᴄᴇ Tᴏᴏ Mᴇᴇᴛ YᴏᴜnI`ᴍ Gᴏᴏɢʟᴇ Dʀɪᴠᴇ Dɪʀᴇᴄᴛ Lɪɴᴋ Gᴇɴᴇʀᴀᴛᴏʀ Bᴏᴛ U Kɴᴏᴡ Hᴏᴡ Tᴏ Uꜱᴇ Mᴇ?nJᴜꜱᴛ Sᴇɴᴅ Gᴏᴏɢʟᴇ Dʀɪᴠᴇ Lɪɴᴋ Aɴᴅ I Mᴀᴋᴇ Yᴏᴜʀ Lɪɴᴋ Aꜱ Dɪʀᴇᴄᴛ Dᴏᴡɴʟᴏᴀᴅ Lɪɴᴋ*")
Command 2
- Command Name: *
- BJS Code:
var myMainSite = message
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]|2d|3[0-1])(?:.d{1,3}){2})(?:[1-9]d?|1dd|2[01]d|22[0-3])(?:.(?:1?d{1,2}|2[0-4]d|25[0-5])){2}(?:.(?:[1-9]d?|1dd|2[0-4]d|25[0-4]))|(?:(?:[a-zu00a1-uffff0-9]-*)*[a-zu00a1-uffff0-9]+)(?:.(?:[a-zu00a1-uffff0-9]-*)*[a-zu00a1-uffff0-9]+)*(?:.(?:[a-zu00a1-uffff]{2,})))(?::d{2,5})?(?:/S*)?$/
return regex.test(url)
}
if (validURL(message)) {
if (message.includes("https://drive.google.com")) {
var splitUrl = myMainSite.split('/');
var button = [{title:"❤️ Share",url:"https://t.me/share/url?text=Please Joinn@PR_robotsn"},{title:"🛡 Official Channel",url:"https://t.me/PR_robots"}]
Bot.sendInlineKeyboard(button ,
"★彡[Yᴏᴜʀ Dɪʀᴇᴄᴛ Dᴏᴡɴʟᴏᴀᴅ Lɪɴᴋ Bᴇʟᴏᴡ]彡★nn`https://drive.google.com/uc?export=download&id="+splitUrl[5]+"`n[Tap To Copy]")
}
else{
var button = [{title:"❤️ Share",url:"https://t.me/share/url?text=Please Joinn@PR_robotsn"},{title:"🛡 Official Channel",url:"https://t.me/PR_robots"}]
Bot.sendInlineKeyboard(button ,
"★彡[Pʟᴇᴀꜱᴇ Sᴇɴᴅ Gᴏᴏɢʟᴇ Dʀɪᴠᴇ Lɪɴᴋ Oɴʟʏ]彡★ : https://drive.google.com/file/d/1R4zRB94fh27pOmwnU862j3n8wAhdh8kN/view?usp=sharing")}
}
else {
var button = [{title:"❤️ Share",url:"https://t.me/share/url?text=Please Joinn@PR_robotsn"},{title:"🛡 Official Channel",url:"https://t.me/PR_robots"}]
Bot.sendInlineKeyboard(button ,
"★彡[Wʀᴏɴɢ Uʀʟ]彡★ n Exᴀᴍᴘʟᴇ: https://drive.google.com/file/d/1R4zRB94fh27pOmwnU862j3n8wAhdh8kN/view?usp=sharing")
}
How To use Google Drive Direct Link Generator Telegram Bot