removed all "paid" features - no more stars, gifts, or grams

This commit is contained in:
onysd 2026-08-07 01:50:10 +03:00
parent d4451d753c
commit 21d8e91756
165 changed files with 318 additions and 40948 deletions

View file

@ -242,11 +242,6 @@ TELESRV_BOT_VERIFICATION_ENABLED=true
# up (nothing is deleted), so setting this to false re-enables it. Default
# true -- leave it alone unless you are specifically testing this feature.
TELESRV_HIDE_THIRD_PARTY_VERIFICATION=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
## Storage & Media -- Where uploaded media is stored, and how the server reacts to running low on space.
# Where uploaded media (photos, documents, stickers) is physically stored.
@ -403,7 +398,6 @@ TELESRV_MAPTILE_CACHE_DIR=data/maptiles
# Data directories the server seeds/serves media and content from.
TELESRV_LANGPACK_SEED_DIR=data/langpack
TELESRV_OFFICIAL_GIFTS_DIR=data/official-gifts
TELESRV_BLOB_DIR=data/blobs
TELESRV_STICKER_SEED_DIR=data/sticker-seed
# Caps how many built-in sticker sets get imported on startup; <=0 means no limit.
@ -428,9 +422,8 @@ TELESRV_STORAGE_USAGE_REFRESH_INTERVAL=1m
# TELESRV_RETENTION_INTERVAL/TELESRV_RETENTION_BATCH cadence above.
TELESRV_STORAGE_RETENTION_MAX_AGE=720h
# New-account perks: free Telegram Premium months and starting Stars balance.
# New-account perks: free Telegram Premium months.
TELESRV_PREMIUM_GRANT_MONTHS=3
TELESRV_STARS_STARTING_GRANT=1000
TELESRV_PREMIUM_SWEEP_INTERVAL=1m
TELESRV_PREMIUM_SWEEP_BATCH=500
@ -438,49 +431,6 @@ TELESRV_PREMIUM_SWEEP_BATCH=500
# (the server usually can't predict a mobile app's origin ahead of time).
TELESRV_PASSKEY_ALLOWED_ORIGINS=
# Star Gifts: unique collectible gifts, transfer/resale, crafting/upgrades, auctions. TON
# values are a purely local ledger inside the server -- no real wallet, Fragment, or
# blockchain is ever contacted.
TELESRV_STARGIFT_SWEEP_INTERVAL=15s
TELESRV_STARGIFT_SWEEP_BATCH=1000
# Internal nanoton granted once per user on first local-ledger access.
TELESRV_STARGIFT_TON_STARTING_GRANT=10000000000
TELESRV_STARGIFT_TRANSFER_STARS=25
TELESRV_STARGIFT_DROP_DETAILS_STARS=25
TELESRV_STARGIFT_OFFER_MIN_STARS=1
TELESRV_STARGIFT_STARS_PROCEEDS_PERMILLE=1000
TELESRV_STARGIFT_TON_PROCEEDS_PERMILLE=1000
TELESRV_STARGIFT_EXPORT_DELAY=0s
TELESRV_STARGIFT_TRANSFER_DELAY=0s
TELESRV_STARGIFT_RESELL_DELAY=0s
TELESRV_STARGIFT_CRAFT_DELAY=0s
TELESRV_STARGIFT_CRAFT_CHANCE_PERMILLE=250
# 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
# 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.
TELESRV_RATING_RECOMPUTE_INTERVAL=15m
TELESRV_RATING_RECOMPUTE_BATCH=500
TELESRV_RATING_STALE_AFTER=6h
# Integer composite weights; the defaults below are exactly the shipped domain
# formula. Penalties are magnitudes that the formula subtracts, so every value is
# non-negative and a negative one fails startup.
TELESRV_RATING_WEIGHT_STARS_RECEIVED_PERMILLE=1000
TELESRV_RATING_WEIGHT_STARS_SPENT_PERMILLE=250
TELESRV_RATING_WEIGHT_MESSAGE_SENT=1
TELESRV_RATING_WEIGHT_ACCOUNT_AGE_DAY=2
TELESRV_RATING_WEIGHT_GIFT_RECEIVED=25
TELESRV_RATING_WEIGHT_MODERATION_CASE=150
TELESRV_RATING_WEIGHT_SCAM_PENALTY=5000
TELESRV_RATING_WEIGHT_FAKE_PENALTY=5000
# Upper bound of the activity component so activity alone cannot outweigh Stars
# and moderation; 0 leaves it uncapped.
TELESRV_RATING_ACTIVITY_CAP=5000
# Landing URL recorded on a minted collectible (NFT) username when the mint
# command carries no explicit URL. Empty derives
# <TELESRV_PUBLIC_BASE_URL>/nft/username/<username>. A template may carry the