TeleBotHost
1.14K subscribers
29 photos
4 files
55 links
Download Telegram
Webhook updating, so there can some Errors

Everything fine now
We have updated few things:

1. updated our Webhook class
2. Added Webapp class
3. Updated res class

Tip: Webhook and Webapp class are just for genarate the URLs, and res is for sending response to client

If any error occurs just fell free to tell us
πŸ‘3πŸ‘Œ1
TeleBotHost
Added Webapp class
Let's make APIs, websites together πŸ˜ƒ
Please open Telegram to view this post
VIEW IN TELEGRAM
😁2πŸ₯°1
Should we also add Login/Signup using phone number on our website?
If your number is on WhatsApp 😜, the OTP will be sent there βœ…
Otherwise, you can login/signup with your email βœ‰οΈ

What do you think β€” good idea? πŸ€”
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4🀯2😁1
TeleBotHost
Upcoming fixes and current Bugs
πŸš€ Update: Async Error Handling Fixed!

We’ve just rolled out an important fix for the Bot class async behavior πŸ› οΈ
Now all Bot methods like Bot.run() and Bot.runCommand() will throw errors properly β€” no more silent failures!

Also, message-related methods such as Bot.sendMessage() will now log errors directly in your bot error logs

βœ… More reliable
βœ… Easier debugging
βœ… Cleaner flow

Read more here:
https://telebothost.com/docs/#async-error
❀239πŸ‘5343🀩1
We’ve fixed a lot of issues β€” now you can run any production-ready bot smoothly! πŸš€

But honestly, it’s a bit sad to see that we’re not getting much support πŸ˜”
We’re offering a completely ad-free and free-to-use platform for developers to express their bot ideas β€” without charging even a single penny.

Other platforms filled with ads get users sharing their codes publicly,
but for us, only a few (2–3) users are sharing their work.

If you truly believe in open and free bot development,
please help us by sharing and supporting this mission ❀️
5❀3😁1
Added a new bot on bot store

@tbl_WebBot
3🀝1πŸ†’1
A request to all members

Please don’t just copy code from other platforms and paste it into TBL. It often won’t work that way. We have proper docs and many AI tools to help you learn β€” use them!

If you use GPT or any AI, read the code carefully and understand how it works. If something fails, ask clearly and learn from it.

Don’t be a copy-paster, be a real coder.
6432πŸ₯°1
Resources Lib is deprecated,

We need to fix it 1-2 day need to fix it , or any pro devoloper just can contribute to made better


Here the Libs
2πŸ”₯1πŸ—Ώ1
We’ve introduced a brand-new sleep() method in TBL!

Now your bot can take a tiny nap during execution β€” up to 10 seconds β€” which helps prevent rate-limit issues and smooths out rapid actions.

Usage:

sleep(1000) // pauses for 1s


This update also includes 2 new objects
- owner
- plan

Learn more about sleep
❀41
Soon we’ll be launching our Premium Plans with super affordable and satisfying pricing!

We will offer 3 fixed plans:
β€’ $1
β€’ $3
β€’ $5

And honestly, if you all support us, we’ll go crazy rolling out even more powerful features!
8❀22πŸ†1
TeleBotHost
Soon we’ll be launching our Premium Plans with super affordable and satisfying pricing! We will offer 3 fixed plans: β€’ $1 β€’ $3 β€’ $5 And honestly, if you all support us, we’ll go crazy rolling out even more powerful features!
I think these plans are truly affordable. Some platforms charge 5Γ— more while offering almost the same features as our free plan β€” and they still impose a strict command-run limit.
But here, we offer no limits on how much time Command runs.
❀1
Interested in contributing to TBL and proving your skills as a real supporter and developer?

Create your own TBL Library and share your creativity with the community.

β€’ Build a unique or useful TBL Lib
β€’ Submit a Pull Request at: https://github.com/telebothost/tbl-libs
β€’ If we like your library, we will definitely add it to the official collection.

Show your best work and help grow the TBL ecosystem.

Tip: Before submitting, always test your library code.

How: Simply paste your library code inside the @ command, comment out the module export section, and test your functions or variables directly using the names you defined β€” not Libs.xx.yy.
❀2
If you face any errors β€” even small issues β€” please share the full error details with us. We want to make everything as bug-free as possible!
❀2
Does everyone think we should bring back a global prop that can be accessed by all bots, like Global.get()?

We actually had it before, but it was patched out in a later update.
Now we’re considering adding it back πŸ˜„
❀6πŸ‘11
TeleBotHost
Does everyone think we should bring back a global prop that can be accessed by all bots, like Global.get()? We actually had it before, but it was patched out in a later update. Now we’re considering adding it back πŸ˜„
We’re also thinking about adding an environment (env) system β€” something that can be configured directly from an β€œEnv” tab.

So yeah, we might need this feature too πŸ˜„

Env – idea by @DevAryanRathod

It’ll be especially useful when transferring bots to another account β€” your secrets will stay hidden, and others can easily add their own.
❀42
Forwarded from TBL Codes
πŸ’‘TBL Tip 3: When accessing multiple properties, use Promise.all() to run them in parallel β€” it's much faster ⚑️

βœ… Do this (parallel) :

let start = Date.now()
let results = await Promise.all([
Bot.get("user_1"),
Bot.get("user_2"),
Bot.get("user_3"),
Bot.get("user_4"),
Bot.get("user_5")
])
Bot.inspect({
took: Date.now() - start + "ms",
results
})

It will take 1-3ms even 10+ properties

❌ Don’t do this (sequential):
let a = await Bot.get("user_1")
let b = await Bot.get("user_2")
let c = await Bot.get("user_3")
let d = await Bot.get("user_4")
let e = await Bot.get("user_5")

That version runs each one after the previous finishes,
making your bot slower ⏳ especially with many keys.
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ†’1
πŸ‘‹ Great to share our progress!

In just 1.5 months, we’ve reached 1.3k+ bots with 600+ active running! πŸ’ͺ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯10❀5😁1πŸŽƒ1