How to create a Telegram bot

  STEPS

- Download Bot.business from Play store(26 MB)

- Launch the app andaSign up with your email

- Click on "New Bot" and write any name your prefer to name your bot e.g Wakibot

- After you have done the step, Go to @botfather on telegram and create a new bot

- Generate your API key, then go back to bot.business app and paste the api key on the bot you created on bot.business

- After that, go to the second symbol at the top and create a command /start and then click on edit bjs

- After you click on the edit bjs you  would see a blank space, that is where you would paste your code

Then paste this code let's use it as an example 👇

var button = [{ title : "📎 Done" , command : "Joined ✅" }]
Bot.sendInlineKeyboard(button , "*Welcome To kin token Airdrop Round 1\n\nhttps://t.me/safemoonpay\n\nhttps://t.me/Citylooters\n\nhttps://t.me/airdrop_bucks\n\nhttps://t.me/Online_Earning_trick_s\n\nhttps://t.me/crypto2earn\n\nhttps://t.me/legitbossairdrops\n\nJoin all channel to receive airdrop reward*")
function hello(message) {
  var greetings = ""

  Bot.sendMessage(greetings + message)
}

function doTouchOwnLink() {
  Bot.sendMessage("*You're Trying To Invite You're Self ❌*")
}

function doAttracted(channel) {
  hello("Referal: " + channel)
}

function doAtractedByUser(refUser) {
  hello("")
  var balance = Libs.ResourcesLib.anotherUserRes("balance", refUser.telegramid)
 balance.add(0)
Bot.sendMessageToChatWithId(refUser.chatId, "*🏧 New Referral : reward When Your Referal Join all the Çhàññéls*");
}

function doAlreadyAttracted(){
  Bot.sendMessage("*You Already Started The Bot ❌*");
}

var trackOptions = {
  onTouchOwnLink: doTouchOwnLink,
  onAttracted: doAttracted,
  onAtractedByUser: doAtractedByUser,
  onAlreadyAttracted: doAlreadyAttracted
}

Libs.ReferralLib.currentUser.track(trackOptions);

var status = Libs.ResourcesLib.anotherChatRes("status", "global")
  status.add(1)


After you paste the code above👆, save the codes then launch your bot then test the bot on Telegram that you launched 

Message me on telegram @botcodesshop if you need my help
We would continue the lesson next time, keep checking up for my next post

Kindly subscribe to my YouTube channel to enjoy free lessons

https://youtube.com/channel/UCUDebaIqV_7MGVzjDW2sK7A

                Have a nice day🤟❤️









Comments

Popular posts from this blog

Introduction To Telegram Bots

THINGS TO CONSIDER BEFORE STARTING A BOT CREATION⚠️