3x-ui/internal/web/service/tgbot
MHSanaei efaa73db3a
perf(tgbot): stop loading the whole inbound per client in usage listings
Listing a Telegram account's clients ran CheckIsEnabledByEmail and
describeAttachedInbounds for every client, and both loaded and parsed
the client's entire inbound, so one message cost the number of clients
times the size of their inbound's settings.

CheckIsEnabledByEmail now reads the client's own record first, keeping
the inbound parse only for legacy clients never normalized into the
clients table, and describeAttachedInbounds takes every remark in one
query without loading any settings.
2026-11-01 09:14:43 +01:00
..
helpers.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
i18n_keys_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
notices.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
notices_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
numeric_input.go refactor(tgbot): extract the shared numeric keypad builder 2026-09-10 21:07:57 +02:00
numeric_input_test.go test(tgbot): detect open-coded keypad transitions (#6214) 2026-08-15 15:27:02 +02:00
screen.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_client_qr.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_client_views.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
screen_inline.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_inline_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_legacy.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_view.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screen_views.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
screens_art.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
screens_test.go fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
tgbot.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_add_client_expiry_test.go fix(tgbot): scope the add-client wizard to the admin, not the chat (#6604) 2026-09-26 20:31:39 +02:00
tgbot_add_client_wizard_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_admin_list_race_test.go fix(tgbot): read the admin list and running flag under their mutex (#6491) 2026-09-13 11:46:36 +02:00
tgbot_broadcast.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_broadcast_test.go fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
tgbot_callback_auth_test.go Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
tgbot_client.go perf(tgbot): stop loading the whole inbound per client in usage listings 2026-11-01 09:14:43 +01:00
tgbot_client_draft_per_admin_test.go perf(tests): copy a migrated template DB instead of migrating per test 2026-09-27 03:04:50 +02:00
tgbot_client_draft_per_chat_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_client_expiry_test.go fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
tgbot_client_links_authz_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_declined_callback_test.go fix(tgbot): answer the callbacks the bot cannot route (#6493) 2026-09-13 11:47:22 +02:00
tgbot_draft_render_test.go fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
tgbot_event.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_groups_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_inbound.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_individual_links_test.go fix(sub): resolve a blank subId to no subscription 2026-11-01 00:57:32 +01:00
tgbot_invite.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_invite_test.go fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887) 2026-10-24 05:55:19 +02:00
tgbot_level.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_level_test.go fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887) 2026-10-24 05:55:19 +02:00
tgbot_report.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_report_batching_test.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_review_fixes_test.go perf(tgbot): stop loading the whole inbound per client in usage listings 2026-11-01 09:14:43 +01:00
tgbot_router.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_send.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_send_test.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_stale_button_test.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
tgbot_test.go feat(tgbot): route admin notifications to a forum topic (#6879) 2026-10-24 05:55:55 +02:00