Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
🎉 New: WebApp.render on Webhooks
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
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)
👍42
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

It is simple example how to transfer data between bot and web.


VueJS and Bootstrap are used for web app
🔥7👍3🤔1
✈️
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥85👍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.

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
BB Servers - restart in progress
2 hours Top Error Report

5 top errors:
Cannot read properties of null 215
JS syntax error 171
wholeUsers 168
Incorrect Api param 125
Incorrect Api param on Msg Editing 116
👍7🤔3
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.
👍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.
64👍2
After 30 hours we have good speed and slowly requests reduced to normal value as before
61🔥1
Error with Bot WebApp rendering - fixed
🤣154👍32🥰2🔥1😱1
ResLib update

New method for Res: resetGrowth
let res = Libs.ResourcesLib.userRes("usd");
// this res have growth

res.resetGrowth(); // reset growth - no growth now


New methods for growth:
res.growth.resume() - resume growth after stop with growth.stop()
res.growth.remove() - remove growth
👍5🔥42👎2
https://t.me/bbpoints is live again
3👍1
admin > @BotsBusinessAdmin: +1💎
🤣8🤪4👍1
If you still have something like this:

if (!User.getProperty("UserDone")) {
// ...
User.setProperty("UserDone", true, "boolean")


change it to:
if(chat && chat.just_created && chat.chat_type=="private"){
// your code here


It is really more quickly!
Prop reading + saving - it is more slowly!
👍5🥰3
We need 5-15 min downtime
👎157👍1