Accept BB Points in your bot

We can accept BB Points 💎 in any bot now.
See example in @BBWebhookBot
How to make?
See example for /sample3 in @BBWebhookBot
Step 1
- install Webhook Lib in your bot and make webhook url:
// Generate webhook link for BB Point Bot
let url = Libs.Webhooks.getUrlFor({
command: "onBBPointIncome"
})
Bot.sendMessage(
"Set this url in [@BBPointBot](https://t.me/BBPointBot?start=link) bot for notification." +
"\n\nCommand [@BBPointBot > /link](https://t.me/BBPointBot?start=link) "
)
// send url without markup
Api.sendMessage({ text: url });
Step 2
Go to @BBPointBot - /link and paste link from step1
You will get such link for request:
https://t.me/BBPointBot?start=req15-1-points-to-519829299
You can change bb point amount in url part: -XXX-points
You can change user.id after part: -to-user-XXX