Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
We had night DDoS attack
πŸ‘Ž13πŸ”₯3😱3πŸ™ˆ3πŸ€”2πŸ₯°1
@BBDemoTaskBot - you can try this bot now.

It is currently under active development, but looks to be 80-90% complete.
You can test it and give your feedback or errors.

#taskBot
❀2πŸ‘1πŸ₯°1
Why @BBDemoTask bot so slowly? 😱

Because it beforeAll command - "@" have approx 1400 lines of code now.

It is huge count!

But don't worry! We will move this magic code to several Libs later!

Why we use "@" command?

Because it is very easy for Lib development. After full testing we will move this code to Libs!

Today updates:
- button text can be translated
- smart commands have aliases (needs to translate alias or aliases not command name!)
- we have translation instruction now
😎4❀2πŸ‘2πŸ”₯2
DDoS attacks in last 3 days
πŸ‘Ž16πŸ‘7πŸ”₯2
We have DDoS attack.

Protection in progress.
πŸ‘Ž12πŸ‘8❀2😱2
Do we need BB Channel Stories?

https://t.me/botsbus?boost
πŸ‘Ž6πŸ‘4❀3πŸ€”3
@BBDemoTaskBot

New:
- /clear command for data reset. You can retest bot again
- withdrawal - working now (It is just demo. Admin must process transactions manually: it is common case)
- withdrawals channel - @BBTaskLog (it can be public or only for admin)
- bug fixing

This is still slowly bot. Command "@" have approx 1500 lines of code.
It will be more quickly after Lib migrations!

In progress:
- Help articles
- Lib(s) migration
- Bot publishing in BB Store

Done:
- bot (v1) - DONE βœ…
- lib codes

P.S.
Because we have /clear command - it is not possible make real rewards with BBP in this bot.
It is demo bot not real Task Bot and data resetting important for debugging here.
Please don't ask about rewards 😞
❀3😱3πŸ‘1
@BBDemoTaskBot - available in the BB Store

GitHub
https://github.com/bots-business/BBDemoTaskBot

Benefits
- Very high coding level
- New SmartBot architecture
- SmartTasker is used

SmartBot Architecture
- Multi-language - bot can be translated into any language with only one file
(ChatGPT can also translate it!)
- Logic is isolated from content
- Logic becomes simpler!

Task System
- Core Tasks (bot joining, referral) and Paid Tasks
- Task rewarding only after the correct answer
- Based on URL-visiting task, but it can be any task because we have a validation poll

Withdraw
- Simple withdraw system by user request
- Admin can accept or reject requests in the channel
- Powerful amount checking with SmartAmountDialog

Miro Bot Map
https://miro.com/app/board/uXjVNMBw3Eg=/

How to Use This Bot?
1. Install it from the Store!
2. Change the setup/lng-en command (you can also add a new language file)
3. Change constants in @-commands.
4. Change Paid&Core Tasks in @-commands.
5. Run /setup

#SmartBot #DemoTaskBot
❀4πŸ‘4
SmartBot is a new era in bot development.

And that's why:
- the entire content part of the bot can be separated into language files. Moreover, this can (and should) be done at the initial stage of development.
- even one language file gives very great benefits: to change some lines you don’t need to go through commands - you just edit the language file
- the use of SmartBot principles allows you to simplify the logic. She's really getting smaller! This makes development easier!
- you can make simple bots simply based on language files!

We focus on this architecture.

New help articles is available now!
- Overview
- Lang Files
- SmartBot
- SmartTasker
- AmountDialog

#smartBot
πŸ”₯5
We had night downtime due DDoS attack
πŸ‘Ž12πŸ€ͺ7😱4πŸ‘2
Forwarded from z0x99 πŸ‘¨β€πŸ’»
I don't know who created this but I just shared here.
πŸ‘9πŸ‘Ž7🀣6πŸ‘3πŸ™ˆ3πŸ™1
Some users use external APIs for very simple codes!

For example we can use this code for sample transaction generation in TRON network.

function getSampleNickName() {
const prefixes = ["Mighty", "Tiny", "Happy", "Crazy", "Wise", "Brave", "Sneaky", "Lucky"];
const baseNames = ["Dragon", "Wolf", "Phoenix", "Tiger", "Hawk", "Lion", "Bear", "Fox"];

const prefix = prefixes[Math.floor(Math.random() * prefixes.length)];
const baseName = baseNames[Math.floor(Math.random() * baseNames.length)];

return `${prefix}${baseName}`;
}

function getSampleTrxTransaction({min, max}) {
// Random user ID generation
const userID = Math.floor(Math.random() * 9000000000) + 1000000000;

// Random amount generation
const amount = Math.random() * (max - min) + min;

// Conversion of TRX to USD
const in_usd = CurrencyQuote.convert({ amount: amount, from: "TRX", to: "USD" });

const name = getSampleNickName();

// Generating a plausible hash
const hashString = `${name}${userID}${amount}`;
const hash = CryptoJS.SHA256(hashString).toString();

return {
name: name,
userID: userID,
amount: amount.toFixed(2),
in_usd: in_usd.toFixed(2),
hash: hash
};
}

// using
const trxTransaction = getSampleTrxTransaction({min: 0.01, max: 1000});
Bot.sendMessage(
`*${trxTransaction.name}* sent *${trxTransaction.amount} TRX* (${trxTransaction.in_usd} USD) to *${trxTransaction.userID}*`
)
πŸ‘11😱4❀2
⚠️ If you need any HTTP on /start it is better to add background: true

Users can't wait your http request!

Start command must be very quickly!
πŸ‘13❀3πŸ‘Ž2πŸ₯°2
New methods added:

Api.setMessageReaction(opts)
Api.deleteMessages(opts)
Api.forwardMessages(opts)
Api.copyMessages(opts)
Api.getUserChatBoosts(opts)


Please see full info:
https://core.telegram.org/bots/api
πŸ”₯5πŸ‘3πŸ€”2❀1