Building a screen pop up alart bot step by step Using Bot.business app - Wakiiteq

Friday, September 3, 2021

Building a screen pop up alart bot step by step Using Bot.business app

 By the end of this article you will be able to make your own screen pop up alart bot .

With screen pop up, you can make your bot look more nice and advanced.


Here is a quick tutorial that review the screen pop up and top pop up alart bjs.


⚠ Warning : Don't Sell any Content from this Blog.



Starting Tutorial




Command1 = /popmeup 


Bjs Or Script Bellow 



var button = [{ title: "I Know", command: "@11145pop" }]

Bot.sendInlineKeyboard(button, "This Is A pop Up Bot")



Command2 = @11145pop


Bjs = Api.answerCallbackQuery({

callback_query_id: request.id,

text: "Yes I Know 😂😂😂😂😂 Buy bot on @ShopMulBot",

show_alert: true })





Top pop up alart bjs



Command1    /Pops


Bjs Or Script Bellow 




var button = [{ title: "I Know", command: "@11145pop45" }]

Bot.sendInlineKeyboard(button, "This Is A pop Up Bot")


Command2= @11145pop45


Bjs Or Script Bellow 


Api.answerCallbackQuery({

callback_query_id: request.id,

text: "Yes I Know 😂😂😂 Buy bot on @ShopMulBot",

show_alert: false })





Putting The popup alart in action using rating bjs.




 Command - 💲Rate Us


Wait For Answer - off


BJ's Bellow 


 

var button = [[{title:"🌟🌟🌟",command:"/rate 🌟🌟🌟"}],[{title:"🌟🌟",command:"/rate 🌟🌟"}],[{title:"🌟",command:"/rate🌟"}]]

Bot.sendInlineKeyboard(button,

  "*Please  Rate Us📍\n\n🌟🌟🌟 - Amazing\n🌟🌟 - Average\n🌟 - Waste*"

)




Second Command:  /rate



Wait For Answer - off




BJ's Or Script Bellow



 Api.sendMessage({

   chat_id: "@shopmul",

   text: "*🆕New Rating Found\n\nFirst Name: 👤 -  "+user.first_name+" \n🕵️User Name - @"+user.username+"\n👨‍💻User Id - "+user.telegramid+"\n😍Rating " + params + "*",parse_mode: "Markdown"

})

Api.answerCallbackQuery({

callback_query_id: request.id,

text: "😊😊😊Thanks For Rating Us",

show_alert: true })



Or 



Api.sendMessage({

   chat_id: "@shopmul",

   text: "*🆕New Rating Found\n\nFirst Name: 👤 -  "+user.first_name+" \n🕵️User Name - @"+user.username+"\n👨‍💻User Id - "+user.telegramid+"\n😍Rating " + params + "*",parse_mode: "Markdown"

})

Api.answerCallbackQuery({

callback_query_id: request.id,

text: "😊😊😊Thanks For Rating Us",

show_alert: false })





Putting The pop up alart using bonus bjs or Script




function canRun(){

  var last_run_at = User.getProperty("last_run_at");

  if(!last_run_at){ return true }

  

  var minutes = (Date.now() - last_run_at) /1000/60;

  

 var minutes_in_day = 3 * 60

          var next = minutes_in_day - minutes

          var wait_hours = Math.floor(next / 1)

          next -= wait_hours * 1

          var wait_minutes = Math.floor(next)

          var seconds = Math.floor((next - wait_minutes) * 1)

          if (minutes < minutes_in_day) {

   Bot.sendMessage("🚰 *Next Faucet Claim Time Is Not Ready Yet. *\n\n📟 *Wait Let The Countdown Expire.:*⏱️ _"+wait_hours+"H "+wait_minutes+"M " 

 + seconds+ "S_" );

   return

 }

  return true;

 }


if(!canRun()){ return }

User.setProperty("last_run_at", Date.now(), "integer");


let res = Libs.ResourcesLib.userRes("balance")

res.add(0.3)

Api.answerCallbackQuery({

callback_query_id: request.id,

text: "✅ 0.3 BTT Claimed",

show_alert: true })



Or 




function canRun(){

  var last_run_at = User.getProperty("last_run_at");

  if(!last_run_at){ return true }

  

  var minutes = (Date.now() - last_run_at) /1000/60;

  

 var minutes_in_day = 3 * 60

          var next = minutes_in_day - minutes

          var wait_hours = Math.floor(next / 1)

          next -= wait_hours * 1

          var wait_minutes = Math.floor(next)

          var seconds = Math.floor((next - wait_minutes) * 1)

          if (minutes < minutes_in_day) {

   Bot.sendMessage("🚰 *Next Faucet Claim Time Is Not Ready Yet. *\n\n📟 *Wait Let The Countdown Expire.:*⏱️ _"+wait_hours+"H "+wait_minutes+"M " 

 + seconds+ "S_" );

   return

 }

  return true;

 }


if(!canRun()){ return }

User.setProperty("last_run_at", Date.now(), "integer");


let res = Libs.ResourcesLib.userRes("balance")

res.add(0.3)

Api.answerCallbackQuery({

callback_query_id: request.id,

text: "✅ 0.3 BTT Claimed",

show_alert: true })




Putting the popup alart in action using withdraw bjs



var btc = Libs.ResourcesLib.userRes("balance")


if(btc.value()>0.00000024){

  Bot.sendMessage("💰 *You have "+btc.value().toFixed(8)+" Ltc*")

  Bot.runCommand("© Coinbase2")

} else {

  Api.answerCallbackQuery({

callback_query_id: request.id,

text: "😂 Minimum Withdraw 1m TRX",

show_alert: true })

}



You can now use the tutorial here to create your own popup bot .

In case You notice any bug Please Write A message to us on telegram

1 comment:

  1. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    Equipment

    ReplyDelete

Tells Us If this article is value to you