🎉 New: WebApp.render on Webhooks
Why we need this?
- We can render any user's data now without bot message to this user.
- It is needed for WebApp with dynamic - we can read&update data now with AJAX from web page
See more
WebApp.render({ content: "Hello from bot " + bot.name });Why we need this?
- We can render any user's data now without bot message to this user.
- It is needed for WebApp with dynamic - we can read&update data now with AJAX from web page
See more
help.bots.business
Webhooks lib | Bots.Business - Help
❤5👍4
What is difference between WebApp and Webhook?
Webhook can have WebApp.render method now.
So it is become very similar for WebApp now.
Main difference it is:
WebApp used for static content. Can be shared.
Webhook it is for dynamic content. It is have secret token so user must keep this secret.
So it is good practice:
- WebApp is used for static html, web javascripts
- webhooks used for json response (API requests)
Webhook can have WebApp.render method now.
So it is become very similar for WebApp now.
Main difference it is:
WebApp used for static content. Can be shared.
Webhook it is for dynamic content. It is have secret token so user must keep this secret.
So it is good practice:
- WebApp is used for static html, web javascripts
- webhooks used for json response (API requests)
👍4❤2
This media is not supported in your browser
VIEW IN TELEGRAM
@BBWebhookBot have new example 4 now:
Simple Web App with data sync:
- user balance loading to web page
- web page post balance to bot
VueJS and Bootstrap are used for web app
Simple Web App with data sync:
- user balance loading to web page
- web page post balance to bot
It is simple example how to transfer data between bot and web.
VueJS and Bootstrap are used for web app
🔥7👍3🤔1
Bots.Business
Seems Telegram have bad speed now and we also have bad speed due this 😱😞 https://downdetector.com/status/telegram/ https://downforeveryoneorjustme.com/telegram
Seems Telegram have speed degradation now. And we also have it now.
Links:
https://downforeveryoneorjustme.com/telegram
Failed to open TCP connection - it is mean BB Api can't connect with Telegram because it is not answering.
Links:
https://downforeveryoneorjustme.com/telegram
😱7👍2👏1
Bots.Business
Seems Telegram have speed degradation now. And we also have it now. Failed to open TCP connection - it is mean BB Api can't connect with Telegram because it is not answering. Links: https://downforeveryoneorjustme.com/telegram
We still have Telegram degradation issue in last 12 hours. 😞
It is chart for all requests more then 4 secs.
It is chart for all requests more then 4 secs.
👍5
All Top Errors report:
https://telegra.ph/Top-errors-09-02
1. BJS-errors (logicacl, synta errors, include #WholeUsers issue) - 85%
2. Timeouts errors - 7%
3. BB Errors - 7%
https://telegra.ph/Top-errors-09-02
1. BJS-errors (logicacl, synta errors, include #WholeUsers issue) - 85%
2. Timeouts errors - 7%
3. BB Errors - 7%
Telegraph
Top errors
We take all 2 hours errors and categorize it. Total errors count: 1036 All errors charts All errors Timeouts Errors - 6.8% BB Errors 6.8%
👍5
Bots.Business
We still have Telegram degradation issue in last 12 hours. 😞 It is chart for all requests more then 4 secs.
We suspect that the issue may be related to Telegram throttling IP addresses from which mass messages are sent.
This could negatively affect not only the speed of the mass broadcasting themselves but also the sending of regular messages through all of our bots.
To test this and understand the extent of its impact on the bots' overall performance, we have temporarily disabled all broadcasting tasks. This temporary measure will allow us to conduct testing and analyze the situation.
Also Instant Ad broadcasting on AdHub is also disabled now.
This could negatively affect not only the speed of the mass broadcasting themselves but also the sending of regular messages through all of our bots.
To test this and understand the extent of its impact on the bots' overall performance, we have temporarily disabled all broadcasting tasks. This temporary measure will allow us to conduct testing and analyze the situation.
Also Instant Ad broadcasting on AdHub is also disabled now.
👍6
Bots.Business
We suspect that the issue may be related to Telegram throttling IP addresses from which mass messages are sent. This could negatively affect not only the speed of the mass broadcasting themselves but also the sending of regular messages through all of our…
After 24 hours disabled broadcasting slowly requests reduced to approx 100%.
This is more good then yesterday but still is not same as before.
So big mass broadcasting is not good for bot speeds - Telegram slowly such bots by bot token or IP address.
Broadcasting is still disabled - need good speed restoring.
This is more good then yesterday but still is not same as before.
So big mass broadcasting is not good for bot speeds - Telegram slowly such bots by bot token or IP address.
Broadcasting is still disabled - need good speed restoring.
❤6⚡4👍2
Bots.Business
We suspect that the issue may be related to Telegram throttling IP addresses from which mass messages are sent. This could negatively affect not only the speed of the mass broadcasting themselves but also the sending of regular messages through all of our…
Broadcasting Tasks enabled on slowly speed now.
Speed is 20%
Speed is 20%
🥰5🤣4👍1👏1🎉1👻1
ResLib update
New method for Res: resetGrowth
New methods for growth:
New method for Res: resetGrowth
let res = Libs.ResourcesLib.userRes("usd");
// this res have growth
res.resetGrowth(); // reset growth - no growth nowNew methods for growth:
res.growth.resume() - resume growth after stop with growth.stop()res.growth.remove() - remove growth👍5🔥4❤2👎2
If you still have something like this:
change it to:
It is really more quickly!
Prop reading + saving - it is more slowly!
if (!User.getProperty("UserDone")) {
// ...
User.setProperty("UserDone", true, "boolean")change it to:
if(chat && chat.just_created && chat.chat_type=="private"){
// your code hereIt is really more quickly!
Prop reading + saving - it is more slowly!
👍5🥰3