Skip to content

Digital Accounts

github-actions[bot] edited this page Nov 23, 2026 · 5 revisions

Digital Accounts

This feature is not part of a normal BOBRES install. It belongs to the vendor's own store. Selling a supplier's digital accounts, and selling BOBRES licenses from a bot, are locked behind an entitlement that no tier has: not Free, not the trial, not Standard, not Pro. On your install they are hidden, refused and off. You will not see Digital accounts or BOBRES licenses in your dashboard, and you cannot turn them on with a setting.

The page exists so that you know what these two names mean, and so that a question about them has an answer.

What it is

The owner of the vendor's own store can resell the accounts of a supplier through the same bot. The supplier has a reseller API. BOBRES reads the supplier's catalog, the owner prices each product in Toman and writes its names and texts, and customers buy from their wallet.

If you want to sell VPN subscriptions, you do not need it. Use Plans and Pricing.

How it works

  • Core has no internet access. Every call to the supplier goes through the bot. Core names an action and gives the API key for that call. The bot calls the one supplier address it is configured for.
  • The catalog is read every half hour, and every five minutes while something on the shelf is sold out. The Digital accounts page also reads it when it opens on an old one. A new product arrives switched off. The owner writes the names and descriptions in both languages, checks the price, and switches it on.
  • Pricing from the USDT price. The owner can price the accounts from the live price of USDT instead of by hand: the supplier's cost in USDT, times the store's USDT rate (the one the wallet uses), times the owner's markup in percent, rounded up to the next 1,000 Toman. The prices follow the rate in steps (after every catalog read, and when the rate moves half a percent). Any single product can instead have a price the owner types. A new product is priced as it arrives, and still waits switched off.
  • A sold-out product is still shown, marked as sold out, and cannot be bought. The same holds for a product the supplier no longer lists.
  • A purchase is paid from the customer's wallet in Toman. One database transaction takes the money and writes the order. The supplier is then asked, using the order's own ID as the external order ID, so a repeated request never charges twice. The account the supplier returns is stored encrypted and shown to the customer in the bot and under My purchases.
  • If the supplier does not answer, the order stays paid and waiting, and a worker asks again with growing waits. If the supplier refuses for good, the money goes back at once. The owner can retry or refund an order that was never delivered.
  • The supplier balance is shown to the owner on the Digital accounts page and on the Overview.

In the bot

The home of the feature shows the supplier's categories in a grid, red when nothing in a category is in stock. A category lists its products. A product page shows the description, the unit price and the stock, with Buy now. Then the customer picks how many (buttons, or a typed number, up to 25 and no more than the stock), sees an order summary, and pays with the wallet. The bottom menu gets a Digital accounts button while the feature is on.

Texts

The page marks the products that still need Persian texts. The owner can use Export texts to download every product's name and text as a file (with a note for the translator on how the texts should read), have the Persian texts and the BOBRES-style English filled in, and Import texts to bring them back. Prices and switches are not part of that file.

Limits

  • Prices are in Toman only. Pricing from the USDT price needs the supplier's cost in USDT.
  • A purchase takes 1 to 25 accounts.
  • The supplier's stock figure is trusted as read.
  • What a delivery looks like depends on the supplier's answer. It is shown as text, so check the first real order.

About the lock

The lock is enforced in core, not only hidden in the menu: the dashboard section is not shown and the calls are refused unless the install's license grants the vendor's own features. A customer's bot, dashboard and wallet stay as they are.

The shop is in the bot and in the Mini App (More > Digital accounts), with the same categories, product pages, quantities and wallet payment.

Buying a license in one screen. A customer pays for a BOBRES license from their wallet. The licenses are priced in USDT and charged in Toman at the store's USDT rate. When the wallet is short, the confirm screen says how much Toman is missing and offers the top-up. Tapping it saves what they wanted (the tier and 1 or 12 months) for 48 hours, and when the payment lands the store buys the license by itself and sends the key. A manual purchase, a refusal or a refund clears the wish, so nothing is bought twice.

The design notes are in docs/supplier.md. The tiers and what they include are in Licensing.

Clone this wiki locally