Earn Money With Telegram Bot | How to create a broadcast message on Telegram

PR Gujju

 Telegram is a cloud-based mobile and desktop messaging app that allows users to send each other messages, photos, videos, and files of any type (doc, zip, mp3, etc.). Telegram’s end-to-end encryption ensures that all messages are secured so that they can only be read by the intended recipient(s). Telegram also has a feature called “Secret Chat” which allows users to set an expiration timer for all messages sent within the chat. When the timer runs out, the message will automatically disappear.

Telegram is a messaging app that allows users to send messages and files of all types to people who are connected to their phone contacts. Telegram messages are encrypted, allowing them to be used for secure communication. Users can broadcast messages to a large number of contacts at once, making it a popular choice for companies and organizations looking to communicate with a large number of people.

We have created many telegram bots like some URL shortener telegram bot. Instagram info finder. Like many, you must have got some idea or question that why we should create telegram boat, what is our advantage, why hub should provide free to everyone while we do not get anything. So read this article to see the answer to this question.

How To Earn Money With Telegram Bot.

Like you public, we have YouTube and our website technostone.xyz, which you have to make Telegram bot. So today we will talk about its benefits. Like you can earn money from it. earn money from telegram bot

Yes, you read it right, you can earn Telegram bot, that too easily by doing Telegram bot which you have told in many articles.

We can earn money from Telegram bot in two ways.

Method 1

Add Channel For Use Bot

Like we wrote a post on How to Add Force Subscribe Systems Telegram bot. If you have not read then you can read, we told you how you had taught to install the Force Telegram channel subscribe system in your Telegram bot. How can you get force subscribed?
With the same method, you can generate income. Either you can promote a customer's channel or you can add your own channel in your telegram bot and you can sell that channel, you will also generate some income from that.
 

Method 2

Send Broadcast Message

Just like you saw Method 1, you can earn money from this broadcast message as well. For example, if you subscribe to the Telegram channel in a Telegram bot. In that, you can add a channel only once. But in this method 2, you can broadcast the message every time. As if your Telegram bot, many users are doing it. So if they do not start the telegram bot again, then we can send a broadcast message to them.
We can also call a broadcast message a promotion message, in a way that is either the request of our customer or given by the customer. We send the message to our Telegram bot and in return we get money.
Talking about promotion, we will talk about it later, first, we know how you can send your telegram bot broadcast message.

How to create a broadcast message on telegram

Right now we have hosted all the telegram bots we have created on bots. Bots.business that supports the same programming language. It supports JavaScript. If you do this code on any other place or platform then it may not work.
So first of all the Telegram bot, you have created. Some changes will have to be done in it, I am taking the URL shortener telegram bot for example here so that you can come into the society.
In the same way, there are some commands and some code below, then you have to simply edit them and simply paste them.
 

Command 1

Command Name: /start (Edit Start Command Already You Have)
BJS
 

var fullBotUsers = Bot.getProperty("wholeUsers",[])
var already = User.getProperty("already")
if (!already) {
  User.setProperty("already", "DONE", "string")
  fullBotUsers.push(user.telegramid)
  Bot.setProperty("wholeUsers", fullBotUsers, "json")
}

Command 2

Command Name: /broadcast
Answer: Send Message For Broadcast
Wait For Answer: True
BJS
 

if(user.telegramid == 1095232231){
var fullBotUsers = Bot.getProperty("wholeUsers")
var usrname = "@" + user.username
Bot.sendMessage("Starting Broadcast....")
if (!user.username) {
  var usrname =
    '' + user.first_name + ""
}
//POLL
if (request.poll) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Poll Broadcast By " + usrname + ""
    })
    Api.forwardMessage({
      chat_id: info,
      from_chat_id: user.telegramid,
      message_id: request.message_id
    })
  }
  return
}
//END

//VOICE
if (request.voice) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Voice Broadcast By " + usrname + ""
    })
    if (!request.caption) {
      Api.sendVoice({ chat_id: info, voice: request.voice.file_id })
    }
    if (request.caption) {
      Api.sendVoice({
        chat_id: info,
        voice: request.voice.file_id,
        caption: request.caption,
        parse_mode: "HTML"
      })
    }
  }
  return
}
//END
//VIDEO
if (request.video) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Video Broadcast By " + usrname + ""
    })
    if (!request.caption) {
      Api.sendVideo({ chat_id: info, video: request.video.file_id })
    }
    if (request.caption) {
      Api.sendVideo({
        chat_id: info,
        video: request.video.file_id,
        caption: request.caption,
        parse_mode: "HTML"
      })
    }
  }
  return
}
//END
//FILE
if (request.document) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "File Broadcast By " + usrname + ""
    })
    if (!request.caption) {
      Api.sendDocument({ chat_id: info, document: request.document.file_id })
    }
    if (request.caption) {
      Api.sendDocument({
        chat_id: info,
        document: request.document.file_id,
        caption: request.caption,
        parse_mode: "HTML"
      })
    }
  }
  return
}
//END
//AUDIO
if (request.audio) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Audio Broadcast By " + usrname + ""
    })
    if (!request.caption) {
      Api.sendAudio({ chat_id: info, audio: request.audio.file_id })
    }
    if (request.caption) {
      Api.sendAudio({
        chat_id: info,
        audio: request.audio.file_id,
        caption: request.caption,
        parse_mode: "HTML"
      })
    }
  }
  return
}
//PHOTO
if (request.photo[0]) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Photo Broadcast By " + usrname + ""
    })
    if (!request.caption) {
      Api.sendPhoto({ chat_id: info, photo: request.photo[0].file_id })
    }
    if (request.caption) {
      Api.sendPhoto({
        chat_id: info,
        photo: request.photo[0].file_id,
        caption: request.caption,
        parse_mode: "HTML"
      })
    }
  }
  return
}
//END
//STICKER
if (request.sticker) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Sticker Broadcast By " + usrname + ""
    })
    Api.sendSticker({ chat_id: info, sticker: request.sticker.file_id })
  }
  return
}
//END
var promo = "Normal"
if (request.entities[0]) {
  if (request.entities[0].type == "url") {
    var promo = "Promotional"
  }
}
//ANIMATION
if (request.animation) {
  for (var index in fullBotUsers) {
    var info = fullBotUsers[index]
    Api.sendMessage({
      chat_id: info,
      text: "Animation Broadcast By " + usrname + ""
    })
    Api.sendAnimation({ chat_id: info, animation: request.animation.file_id })
  }
  return
}
//END
if (message.length > 1000) {
  Bot.sendMessage("Message Too Big.")
  return
}
for (var index in fullBotUsers) {
  var info = fullBotUsers[index]
  Api.sendMessage({
    chat_id: info,
    text:
      promo +
      " Broadcast  n———————————————————————nn" + message + "nn———————————————————————", parse_mode: "HTML" }) } Bot.sendMessage("✔Broadcast Sent") }else{ Bot.sendMessage("*🔰 You're Not An Admin*") } 
 
After all, this is ready your code is ready
 

how to send broadcast message in telegram bot

Step 1: To send broadcast messages, you have to open your own Telegram bot.
Step 2: Type /broadcast and send to your Telegram bot
Step 3: type the broadcast message you want to send your telegram bot user
Now You Done Telegram bot broadcast message.
 
Get Old Broadcast BJS Click Here
 
 
❤️ Code Credit: ŘØBBÍŇĞ ĢĀMÊŔ | RgBots
 

Getting Info...

About the Author

PR Gujju
Blogger | Youtuber | Beginner Coder

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.