Welcome to Bots.Business chat Also known as (BB chat) 😊 It Q&A (question & answer) not CPD ( Copy&Past Development) chat -------- ❓ Help https://help.bots.business http://app.bots.business
seen ✔️
but ignored because i don't know what me want to response 😁
Suggest me what me want to response to you 🌟
Hell why does bb captcha fails to run the command given after some user joins the bot
Читать полностью…I am robo 🤖
I can help you! /teaching
http://help.bots.business
Ohh! Look who's getting soft now 👀
Should I be worried? 🐱
I think I need to hire him to add button on my bot, what do you think?
Читать полностью…Hlo I Maked api from Bb app
How to use that I forget
like api.bots.business/botid/and bla bla
Can you give example
yes use file_id and getFile
When u upload a file on channel telegram will give a response object
Now just use a little brain and u are done 🙂
That's not a bug sis
Here if chat is inaccessible then tg gives an error so bb run on_error command ig,
So pass on_error: "/some_command_name"
on_result only run on success response
But bb admin can made a little change if error command not found then fallback to success command #suggetion @BotsBusinessAdmin
@Ban_Soon on_result only for success fallback u can try any method tho
It's sometimes happens, when dealing with try catch
try with debugging
Use console.log(res)
Maybe problem with res.ok
<script>
lucide.createIcons();
const tg = window.Telegram.WebApp;
tg.ready();
tg.expand();
document.getElementById("reviewBtn").addEventListener("click", async () => {
const btn = document.getElementById("reviewBtn");
btn.disabled = true;
btn.innerHTML = `<i data-lucide="loader" class="w-5 h-5 mr-2 animate-spin"></i> Sending...`;
lucide.createIcons();
try {
const res = await fetch("<% options.webhookUrl %>", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
chat_id: <% options.user_id %>,
message: "Review request from banned user"
})
});
if (res.ok) {
alert("Review request sent!");
btn.innerHTML = `<i data-lucide="check" class="w-5 h-5 mr-2"></i> Sent`;
} else {
alert(" Failed to send request.");
btn.innerHTML = `<i data-lucide="mail" class="w-5 h-5 mr-2"></i> Try Again`;
}
} catch (e) {
console.error(e);
alert(" Error occurred.");
btn.innerHTML = `<i data-lucide="mail" class="w-5 h-5 mr-2"></i> Try Again`;
}
btn.disabled = false;
lucide.createIcons();
});
</script>
You should take some rest, Lil one
You work really hard, that's why.
I always saw you online on tg.
This isn't good for your health.
Go and have fun with other kids. 🦋
https://api.bots.business/v2/bots/1715454/web-app/commandName
Читать полностью…+2 💎 from [@Ban_Soon](tg://user?id=7378059553).
You have: 2💎
⚠️ Restrictions - possible punishments (read mode only):Читать полностью…
- 8-hour -💎 -1 BBP.
- 24-hour -💎 -3 BBP.
- 1-week -💎 -5 BBP.
- Permanent -💎 -8 BBP.
You have no current punishments.
The telegram api result must be pass on the on_result command like other methods does,
Читать полностью…Tar na bole squid game dackta bhalo lage nah 🤨
Читать полностью…