Coding with Mohit
Open in Telegram
No data
Subscribers
-624 hours
+377 days
+4230 days
Posts Archive
β
Bjs for deleting message after a certain ( fixed ) :-
π Command :
*
π« Bjs :
var messageID = request.message_id
var deleteAfter = 10
User.setProperty("messageID", messageID, "string")
Bot.run({
command: "/delete",
run_after: deleteAfter
})
π Command : /delete
π« Bjs :
var messageID = User.getProperty("messageID")
Api.deleteMessage({
message_id: messageID
})
π Bjs coded by : @Mohit_Kr_Mishra
π Bjs requested by : Renus Hacker
β€οΈ Share with credit : @codingwithmohit
π₯ Don't forget to drop reactions ππ I'm going Offline for 28 days
π Bye - Bye Friends
π₯° Don't leave aane ke baad kuch leke aa raha hu
π₯Ή And finally, we did it π
β€οΈ Literally, I didn't expect that we will achieve this in such time. I'm very thankful to you all friends π
π₯ Thank you so much & love you friends for your support.
π Keep supporting, something big is coming for my friends π₯³
βοΈ Those who didn't receive the bot due to server issue, check now the bot has been sent π€
π And the users who still haven't watched the tutorial, go now & watch it to make your #free Refer & Earn Bot π₯
βοΈ Tutorial : Click
β οΈ Notice : Those who haven't received the bot, please don't panic because there's server issue of Bots.Business.
π Those who didn't receive, raise your hands ( β ) in the comment & I'll send the bot again after the server uptime.
β οΈ Note : Only users who've claimed & not received will raise hand else go & watch the full tutorial
~ Thank you Β© @codingwithmohit β€οΈ
βοΈ How to create an Advance Refer and Earn Bot without Coding - Full Tutorial Explained
π Refer and Earn Bot tutorial published
β
Link : https://youtube.com/@codingwithmohit05
π Go & watch & make your own #Free Refer and Earn Bot
π₯° Drop more & more reactions π
π₯ Get ready friends
β
Subscribe & on the notification: https://youtube.com/@codingwithmohit05
π₯ I've found a great RUB bot that's literally genuine & is going to pay you all on 03/01/2024 for your referrals π
π Bot link : Click
β How will you get free RUB?
Β» Start the bot Β» Join all the channels Β» Submit your Payeer ID & Twitter username Β» Done ! Now refer to earn free RUB π
βοΈ Payeer link : Click
π It's π―% legit so don't miss & share with your friends to earn free RUB π
Do you guys want a revised video tutorial on how to make "Advance Telegram Refer & Earn Bot" in detail ?
Looking for some fantastic content related to Web Development and Programmingπ€?
Look no further! Join this telegram channel For Fantastic Content π€©
ππ»
https://t.me/codingexpert142
https://t.me/codingexpert142
π’ Broadcast anything Bjs :-
βοΈ Command :
/start
π« Bjs :
var newUser = User.getProperty("newUser")
if (!newUser) {
User.setProperty("newUser", "Yes", "string")
var url = "https://api.projectoid.site/v1/telegram/botpanel/adduser.php"
var botID = bot.token.split(":")[0]
var accessToken = "your access token" // Generate it from https://projectoid.site/services/telegram/bot/register
HTTP.post({
url: url,
body: {
bot_id: botID,
access_token: accessToken,
user_id: userID
}
})
}
βοΈ Command : /broadcast
π Answer : *π’ Send the message to broadcast.*
β
Wait for answer : On
π« Bjs :
var admin = Bot.getProperty("admin") //enter your telegram id if don't have admin property
var users = user.telegramid
var botLink = "@" + bot.name
if (users === admin) {
var url = "https://api.projectoid.site/v1/telegram/botpanel/broadcast.php"
var botID = bot.token.split(":")[0]
var accessToken = "your access token" // Generate it from https://projectoid.site/services/telegram/bot/register
try {
var msg = message
function broadcast(type, method, cap, fileid) {
HTTP.post({
url: "https://api.projectoid.site/v1/telegram/botpanel/broadcast.php",
headers: { "content-type": "application/json" },
body: {
method: method,
text: cap,
access_token: accessToken,
bot_token: bot.token,
admin: admin,
type: type,
file_id: fileid,
caption: cap,
parseMode: "html", //you can change it to Markdown
disableWebPreview: true,
protectContent: false //pass true if you don't allow to forward/save message
}
})
}
var boarding = " <b><u>Broadcast By Admin</u></b> \n\n"
var caption = !request.caption ? boarding : boarding + " " + request.caption
if (request.photo[0]) {
broadcast("photo", "sendPhoto", caption, request.photo[0].file_id)
return
}
if (request.text) {
broadcast(
"text",
"sendMessage",
" <b><u>Broadcast By Admin</u></b> \n\n" + message,
null
)
return
}
if (request.video) {
broadcast("video", "sendVideo", caption, request.video.file_id)
return
}
if (request.audio) {
broadcast("audio", "sendAudio", caption, request.audio.file_id)
return
}
if (request.document) {
broadcast("document", "sendDocument", caption, request.document.file_id)
return
}
if (request.sticker) {
broadcast("sticker", "sendSticker", null, request.sticker.file_id)
return
}
if (request.animation) {
broadcast(
"animation",
"sendAnimation",
caption,
request.animation.file_id
)
return
}
if (request.voice) {
broadcast("voice", "sendVoice", caption, request.voice.file_id)
return
}
if (request.video_note) {
broadcast("video_note", "sendVideo", caption, request.video_note.file_id)
return
}
} catch (err) {
Bot.sendMessage(
err + "\n\n*Please Reach out @BjsCodesChat with Error Screenshot.*"
)
}
return
} else {
var notAdminText = "<i>β οΈ You're not the admin of " + botLink + ".</i>"
Api.sendMessage({
text: notAdminText,
parse_mode: "html"
})
}
π Generate your access token from here : https://projectoid.site/services/telegram/bot/register
π Bjs coded by : @Mohit_Kr_Mishra
π€ API credit : Projectoid
β€οΈ Share with credit : @codingwithmohit Β©