Rates
Content
What is rate?
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”.

What are rates needed for?
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.).
How to sell rates?
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:
How to control access to pages?
You can give access to pages for specified rates. To achieve this, select required rates in page configure section:
How to control access to blocks?
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.
Placeholder
To show user rate name is UI, you can use a placeholder in text field {user_rate}
:

In UI, here will be inserted current user rate's name.
How to see user rate in CRM?
The rate is visible in CRM when you choose user:

How to unsubscribe from rate?
Subscriptions to rates are the same as subscription payments. Please read there how to cancel subscriptions.
How to invite and kick users from private groups?
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.
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):
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.
Something unclear in docs or you know how to improve article? Message us in community! We will answer you and then promise to improve the article within 3 days.
Last updated