Rates
Last updated
Last updated
Rate is a particular status that user can buy for points, stars or money (read more in payments section). For example, rates are: “Minimal”, “Standard” and “Premium”.
Depending on the user rate you can:
Give access to your content (for example, if you are selling courses or books).
Control access to pages (for example, users with “Minimal” rate have access to first 10 lessons, users with “Premium” rate have access to all lessors and bonus materials).
Control visibility of blocks (for example, show for premium users secret codes, materials, additional text, extra tasks, etc.).
Rates can be sold in two ways:
Via direct link in button, text, container, etc.
To do this, create a link with the following content (replace placeholders):
#buy-rate?rateName=RATE_NAME&description=PURCHASE_DESCRIPTION
Where:
- RATE_NAME
- is a name of the buying rate (spaces make sense);
- PURCHASE_DESCRIPTION
- the text will appear in invoices before the rate name.
For example:
#buy-rate?rateName=Minimal&description=Buy rate
Then, when the user clicks the URL, a dialog suggesting buying rate will appear:
You can show some blocks to particular rates (or to free users, all users, etc.):
If the user is not in chosen rates, the block will be hidden.
In UI, here will be inserted current user rate's name.
The rate is visible in CRM when you choose user:
When users buy the rate, you can approve them to join private groups and channels. When the rate is expired, you can kick them from groups automatically.
To do so, you need to:
Add bot to private group or private channel.
Mark the bot as an administrator. You can see groups where your bot is present and is admin in this tab:
Select the group in rate groups dropdown.
Put the link from previous step to “rate received message”. After the user received the rate, they will receive a link and can send join request (which bot will approve):
If you want to kick users when their rate expired (due to failed payment, for example), you can click the checkbox “kick when rate removed”.
Important note: the bot approves and rejects only new requests. If there were pending join requests or users without rates — the bot will not accept requests or kick users.
Via paid . To do this, add allowed rates to the : Then, when user try to go to this page, the rate will be suggested to buy:
You can give access to for specified rates. To achieve this, select required rates in page configure section:
To show user rate name is UI, you can use a in text field {user_rate}
:
Subscriptions to rates are the same as subscription payments. .
Generate new private invite lint with join approving, so users can send join requests and bot can approve them (without this automatic approving will not work):
Something unclear in docs or you know how to improve article? We will answer you and then promise to improve the article within 3 days.