If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).
The rate delta is computed by taking the time delta between the last time the user used a certain peer and the last time the rating for that peer was received and dividing it by the exponential decay from config.
Example:
Client-side, every time a user opens chat 123456789
the following operation must be done on the cached top peer info.
dateOpened
indicates when was the peer usednormalizeRate
is an arbitrary time in the recent past.topPeer.rating += e^((dateOpened - normalizeRate) / config.rating_e_decay)