Meta Apis
رفتن به کانال در Telegram
✅ Free Premium Telegram Bot Api Running 24hours 📊 Check Out Our Bots Api Status Here https://stats.uptimerobot.com/p64EDs9KYO/791363666
نمایش بیشترکشور مشخص نشده استدسته بندی مشخص نشده است
506
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
506
❓How To Broadcast Message To Your Bot Users Using MetaApis For bots.business
🧩 Command:-
/broadcast
✅ Wait For Answer:- On
✉️ Answer:- Send me message to broadcast
🖥 BJS :-
if (message) {
Bot.setProp('broadcastMessage', message, 'string');
Bot.runCommand('/JTbroadcast');
}
🧩 Command:- /JTbroadcast
🖥 BJS :-
const bbApiKey = 'PLEASE_CHANGE_ME_WITH_YOUR_BB_API_KEY';
const broadcastCommand = '/JTbroadcast';
const messageText = Bot.getProp('broadcastMessage') || 'Hello User!';
if (content) {
if (params === 'users') {
const webhookUrl = Libs.Webhooks.getUrlFor({
command: `${broadcastCommand} statistics`,
user_id: user.id
});
try {
const regex = /"telegramid":(\d+)/g;
const telegramIds = [];
let match;
while ((match = regex.exec(content)) !== null) {
telegramIds.push(match[1]);
}
HTTP.post({
url: `https://botapi.koyeb.app/broadcast`,
body: { token: bot.token, chatIds: telegramIds, webhookUrl, messageText },
success: `${broadcastCommand} broadcast`,
background: true
});
} catch (error) {
Bot.sendMessage('Error processing content.');
}
} else if (params === 'broadcast') {
Bot.sendMessage(content);
} else if (params === 'statistics') {
const status = JSON.parse(content);
const message = `🚀 **Status Report**\n\n` +
`📩 **Total Messages Attempted:** ${status.totalMessagesAttempted}\n` +
`✅ **Total Success:** ${status.totalSuccess}\n` +
`❌ **Total Failures:** ${status.totalFailures}\n` +
`⏱ **Total Time Taken:** ${status.totalTimeTaken} seconds`;
Bot.sendMessage(message);
}
} else {
HTTP.get({
url: `https://api.bots.business/v1/bots/${bot.id}/users?api_key=${bbApiKey}`,
success: `${broadcastCommand} users`,
background: true
});
}
➖➖➖➖➖➖➖➖➖➖➖➖➖
©️ Channel :- @MetaApis
⚠️ Please report error to me if happens506
🆕 Telebotcreator Unofficial API
Check out the documentation site for demo and examples code.
➖➖➖➖➖➖➖➖➖➖➖➖➖
👁🗨 Documentation: https://botapi.koyeb.app/tbc
👨💻 Channel :- @TCBotCodes
©️ Channel :- @MetaApis
⚠️ Please report error to me if happens
