Commit graph

441 commits

Author SHA1 Message Date
iamxvbaba
8b866b2bb2 fix(admin): sync moderation page localization 2026-07-26 22:03:25 +08:00
iamxvbaba
3369d0bd5c feat(premium): sync promo video catalog seed 2026-07-26 15:59:25 +08:00
iamxvbaba
c3c079edf3 fix(phone): sync confirmed call timeout handling 2026-07-26 15:59:20 +08:00
iamxvbaba
7ce15f68ab fix(web): sync public app link config 2026-07-26 15:59:15 +08:00
iamxvbaba
6b3eba6c5d feat(messages): sync saved message tags 2026-07-25 19:23:19 +08:00
iamxvbaba
a785ae7491 fix(langpack): sync WebK catalog alias support 2026-07-25 14:08:49 +08:00
onysd
0e5da4c8aa translated all logs to english 2026-07-25 07:31:27 +03:00
onysd
e2e6f54ce6 removed default telegram proprietery gifts. stickers and emojies 2026-07-25 01:55:24 +03:00
onysd
b2e84a187d fixes 2026-07-25 01:24:36 +03:00
onysd
ba15e2f32f fix 2026-07-25 01:07:54 +03:00
onysd
a73d24deb2 fix 2026-07-25 01:04:20 +03:00
onysd
76ea4d9f0f fix after merge 2026-07-24 23:23:42 +03:00
onysd
3325e793f9 fixes 2026-07-24 22:46:05 +03:00
iamxvbaba
9ef746d45e test(mtproto): cover single-backend DC aliases
Follow up gramsrv PR #17 with boundary coverage and public configuration docs.

Canonical-Telesrv: b4df3e72c24470e4ce09e5fc1d46e0c2944f6d3e

Reviewed-Head: e7eb07b9eb

Co-authored-by: onysd <beatvin128@gmail.com>
2026-07-24 23:17:32 +08:00
yialdd
5dcdb57e4c
Merge pull request #17 from iamxvbaba/dev
fix: sync lenient DC-ID validation for key exchange
2026-07-24 23:08:57 +08:00
onysd
e7eb07b9eb fix: sync lenient DC-ID validation for key exchange 2026-07-24 17:36:13 +03:00
onysd
b443ff0c73 Merge remote-tracking branch 'upstream/main' into merge-gramsrv-0e2fcdf9 2026-07-24 17:15:53 +03:00
iamxvbaba
0dcfaf0a65 fix: sync remote authorization revoke logout 2026-07-24 21:39:00 +08:00
iamxvbaba
b4aaf57d6b fix: sync public channel preview updates 2026-07-24 14:50:17 +08:00
iamxvbaba
2289a31f46 fix: sync same-port transport detection 2026-07-24 14:50:17 +08:00
iamxvbaba
840ef6237c fix: sync DrKLO report selection support 2026-07-24 11:57:01 +08:00
iamxvbaba
70e57b4d07 fix: sync non-PTS moderation updates 2026-07-24 11:57:00 +08:00
iamxvbaba
cc76cd3679 fix: sync non-PTS privacy updates 2026-07-24 11:57:00 +08:00
iamxvbaba
6cafa40c7b fix: sync moderation refresh cache bypass 2026-07-24 11:57:00 +08:00
iamxvbaba
3dd9c345d7 fix: sync moderation flag convergence 2026-07-24 11:57:00 +08:00
iamxvbaba
5d5883a3d1 feat: sync privacy read-model rules 2026-07-24 11:56:59 +08:00
iamxvbaba
9f467f4be7 feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
iamxvbaba
e1a95c7318 fix: sync contact phone privacy disclosure 2026-07-24 11:56:58 +08:00
wacpi
c1b308877d fix: remove phone bypass in addContact/acceptContact to respect privacy settings 2026-07-24 03:49:31 +03:00
wacpi
b9adf46826 fix: phone privacy check no longer bypassed for contacts
applyPrivacy() had '!phoneAllowed && !isContact' which meant
contacts always saw the phone number regardless of the user's
privacy settings (e.g. 'Nobody'). Removed the isContact bypass
so privacy rules are enforced for everyone.
2026-07-24 03:49:31 +03:00
onysd
7349e0ae68 fix for scripts 2026-07-24 02:44:59 +03:00
onysd
f22a568832 added startup script 2026-07-24 02:37:50 +03:00
onysd
0a6c05404a changed botfather avatar and fixed import 2026-07-24 00:54:19 +03:00
onysd
c436c7c773 added default gifts import back 2026-07-23 23:03:51 +03:00
onysd
66e849d980 default stickers and emojies 2026-07-23 16:54:32 +03:00
onysd
a797b6cd91 removed all cutom stickers and emojies 2026-07-23 16:22:06 +03:00
iamxvbaba
0e2fcdf9c8 chore: sync td v1.1.5 dependency 2026-07-23 15:09:34 +08:00
iamxvbaba
a08c3f848e test: sync fresh Stickers bot reply wait 2026-07-23 15:08:02 +08:00
yialdd
b2ae0f64b0
Merge pull request #13 from epilepticseizureee/feature/admin-soft-ui-dark-theme
Admin panel: Layer 228 moderation, gift granting, bot management, UI updates, QA fixes, and maintainer-reviewed correctness fixes.`n`nMerged with commit history preserved so the original contributor remains attributed.
2026-07-23 13:33:53 +08:00
iamxvbaba
234061ef83 fix(admin): close PR review blockers
Keep bot credentials out of durable command results, fail bot deletion closed when session revocation fails, reject invalid scam/fake states at every write boundary, and make direct collectible grants a single replayable PostgreSQL aggregate.

Also lock admin gift sender/message limits and add regression coverage for rollback, replay, moderation constraints, and credential redaction.
2026-07-23 13:29:04 +08:00
epilepticseizureee
90792cdfab fix(admin): resolve moderation, gift, and admin-panel bugs from QA
- scam/fake: enforce mutual exclusivity (scam precedence) at TL conversion, admin command, and UI toggles; both flags could render as neither
- scam/fake flicker: persist scam/fake in the Redis user base cache so cache hits no longer drop the flags
- getSavedStarGifts: hidden (unsaved) gifts are now force-excluded for non-owner viewers; same guard for get-by-ref
- convertStarGift: map already-upgraded/owner-invalid/unavailable to a clean client error instead of 500
- channel force-settings: send only changed fields (partial patch) and re-sync toggles after reload, so one setting no longer resets another
- give gifts: removed custom collectible numbers (auto sequential only); locked sender to the system account 777000
- give gifts UI: fixed picker card spacing/right gap; static (hover-play) Lottie previews on emoji + picker to stop render lag; fixed emoji ID field overflow
2026-07-23 06:24:53 +03:00
epilepticseizureee
313624eab2 admin: gift granting, collectible attribute/number control, and Layer 228 moderation tools
Admin console additions (Layer 228):
- Give Gifts: dedicated tab with sorted Lottie/TGS gift picker + inline form; grant any catalog gift to a user/channel from 777000 (no charge)
- Upgraded/collectible delivery: mint a unique gift with admin-selected model/pattern/backdrop and custom number, or random/auto (DB FK + UNIQUE(gift_id,num) enforce invariants)
- SCAM/FAKE flags for users/channels (migration 0136) with configurable profile warning (TELESRV_SCAM_WARNING/TELESRV_FAKE_WARNING)
- Support toggle, force channel settings incl. gigagroup (migration 0137), username management, cosmetic color/emoji-status
- Emoji admin tab (custom emoji list + document IDs + Lottie/TGS preview)
- Bot management; soft UI / dark theme
Wired through Router -> admin.Service -> adminapi -> BFF -> React panel (en/zh/ru).
2026-07-23 04:00:29 +03:00
epilepticseizureee
9e45da69ef feat(admin): bot management (list, verify, create, delete)
- Add a Bots admin tab: list/search bots with a dedicated read query
  (users.is_bot, excluded from the accounts list), showing owner and
  system-vs-user type
- Create system bots from the admin via a new bot.create command that
  reuses the existing bot provisioning flow; the token is shown once
- Delete user-created bots via a new bot.delete command backed by a
  dedicated Postgres DeleteBotAccount (revokes sessions, purges private
  state, releases username, drops the bots row, tombstones the user);
  system service bots are rejected
- Verified badge toggling reuses the existing set-verified command
- All write paths go through the dry-run/confirm + audit command pipeline
- Rebuild dist bundle
2026-07-23 00:34:05 +03:00
epilepticseizureee
ad9d535edc feat(admin-ui): softer pre-material styling and dark theme
- Rebuild admin console styling on semantic CSS variables (light + dark palettes)
- Soften palette, shadows and corner radii for a calmer pre-material look
- Add theme provider with light/dark toggle in the topbar and login header
- Respect prefers-color-scheme and persist choice, with anti-FOUC inline script
- Polish Russian translations (yo letters, consistent 'Звёзды' currency, wording)
- Rebuild dist bundle to match the updated source
2026-07-22 23:45:09 +03:00
onysd
b1836c78e8 removed default telegram gifts 2026-07-22 20:20:16 +03:00
A
045e0f6db4 fix: sync StarGift prepaid upgrade message refs 2026-07-22 21:44:33 +08:00
A
8cfb6f74c1 feat: sync host-based public app links 2026-07-22 21:43:56 +08:00
A
10de462191 fix: sync web page preview pending deadline 2026-07-22 21:42:52 +08:00
onysd
139967399d fixed stickers and emojies creation packs 2026-07-22 14:01:02 +03:00
onysd
43894f2fc9 added stickers and emojies list 2026-07-22 12:18:27 +03:00