This commit is contained in:
onysd 2026-08-04 02:03:59 +03:00
parent 1757ba7266
commit 6ade34970c
2 changed files with 95 additions and 21 deletions

View file

@ -221,6 +221,24 @@ TELESRV_BUSINESS_AI_PROVIDER=echo
# Master switch for in-app message/chat translation.
TELESRV_TRANSLATION_ENABLED=true
## Moderation, Verification & Rating -- Toggles for the report-review queue, official/third-party verification, and the account-rating score.
# Reports and moderation-case review are always on; this only gates the
# official platform-checkmark flow applicants file through @verifybot. Rate
# limits and cooldowns for it live in the Advanced section below.
TELESRV_VERIFICATION_ENABLED=true
# Plain user accounts as verification subjects. Off by default: the official
# process verifies a public presence (bot, public channel, public supergroup).
TELESRV_VERIFICATION_ALLOW_USER_TARGETS=false
# Third-party bot verification marks (an icon + description shown before a
# peer's name) -- a separate mechanism from the checkmark above, not the
# platform badge. Its tuning lives in the Advanced section below.
TELESRV_BOT_VERIFICATION_ENABLED=true
# Local composite account-rating score (stars/activity/moderation-based).
# Shown to every viewer via userFull.stars_rating, not admin-only. Scoring
# weights and recompute timing live in the Advanced section below.
TELESRV_RATING_ENABLED=true
# ==============================================================================
# Advanced / internal tuning
@ -377,11 +395,10 @@ TELESRV_STARGIFT_RESELL_DELAY=0s
TELESRV_STARGIFT_CRAFT_DELAY=0s
TELESRV_STARGIFT_CRAFT_CHANCE_PERMILLE=250
# Local admin-only composite account rating. It is not projected into Telegram's
# userFull.stars_rating fields. Disabling it refuses local rating writes.
TELESRV_RATING_ENABLED=true
# Tuning for the account-rating score; the on/off switch
# (TELESRV_RATING_ENABLED) is in the Moderation/Verification/Rating section above.
# A local rating increase is parked for this long before it becomes the visible
# admin level; a decrease always applies immediately. 0 applies every change at once.
# level; a decrease always applies immediately. 0 applies every change at once.
TELESRV_RATING_PENDING_DELAY=24h
# Background recompute worker: the rating derives from signals owned by other
# subsystems, so freshness is a worker property rather than a write-path one.
@ -410,15 +427,10 @@ TELESRV_RATING_ACTIVITY_CAP=5000
# segment. No external marketplace is contacted.
TELESRV_COLLECTIBLE_USERNAME_URL_TEMPLATE=
# Official platform verification: applications filed through the built-in
# @verifybot and decided in the admin panel. An approval flips the platform
# verified flag on the target peer and nothing else; it is not the third-party
# bot verification icon. Disabling refuses every verification use case, while
# peers already carrying the badge keep it.
TELESRV_VERIFICATION_ENABLED=true
# Plain user accounts as verification subjects. Off by default: the official
# process verifies a public presence (bot, public channel, public supergroup).
TELESRV_VERIFICATION_ALLOW_USER_TARGETS=false
# Tuning for official platform verification (applications filed through
# @verifybot); the on/off switch (TELESRV_VERIFICATION_ENABLED) and the
# user-target toggle (TELESRV_VERIFICATION_ALLOW_USER_TARGETS) are in the
# Moderation/Verification/Rating section above.
# How long an applicant must wait before filing the same target again after a
# rejection, measured from the decision so a slow review never shortens it.
# 0 disables the cooldown; must be 0..8760h.
@ -440,14 +452,9 @@ TELESRV_VERIFICATION_NOTIFY_BATCH=50
# is 50.
TELESRV_VERIFICATION_MAX_ACTIVE_PER_USER=3
# Third-party bot verification (core.telegram.org/api/bots/verification): a
# verifier bot marks peers with its OWN icon and description, which clients render
# before the name. This is NOT the platform checkmark above: the operator grants
# verifier status to a bot, and the two mechanisms never read each other's state.
# Disabling refuses every third-party mutation (grants, revocations, applications,
# icon catalogue edits) while the marks already granted keep rendering -- blanking
# one verifier's badges is what its per-verifier kill switch is for.
TELESRV_BOT_VERIFICATION_ENABLED=true
# Tuning for third-party bot verification; the on/off switch
# (TELESRV_BOT_VERIFICATION_ENABLED) is in the Moderation/Verification/Rating
# section above.
# Peers one verifier bot may mark. Verifier status is granted per deployment rather
# than earned per peer, so an unbounded verifier would be an unbounded badge
# printer. 0 disables the service bound and leaves only the storage bound, which is