3x-ui/internal/web/service/tgbot
MHSanaei 99f386820d
fix(tgbot): treat messages sent on behalf of a chat as strangers
Telegram fills a message's From with one of three fixed placeholder
users whenever it is posted on behalf of a chat, by an anonymous group
admin or a channel. The level gate and the invite claim took that
placeholder for the account acting, so it got a throttle window of its
own, and a claim bound the client to an id every anonymous admin shares.

Such a message is rated as a stranger whatever the placeholder id is
bound to, and its invite claim is refused before it is counted or bound.
2026-11-01 13:47:40 +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 fix(tgbot): keep a login alert's username on one line 2026-11-01 13:37:40 +01: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): release the invite claim lock even when a claim panics 2026-11-01 13:38:58 +01:00
tgbot_invite_test.go fix(tgbot): treat messages sent on behalf of a chat as strangers 2026-11-01 13:47:40 +01:00
tgbot_level.go fix(tgbot): treat messages sent on behalf of a chat as strangers 2026-11-01 13:47:40 +01:00
tgbot_level_test.go fix(tgbot): treat messages sent on behalf of a chat as strangers 2026-11-01 13:47:40 +01:00
tgbot_report.go fix(notifications): throttle failed-login alerts where they are published 2026-11-01 13:44:32 +01:00
tgbot_report_batching_test.go fix(tgbot): escape template parameters once in I18nBot 2026-11-01 08:58:43 +01:00
tgbot_reports_usage_test.go fix(notifications): throttle failed-login alerts where they are published 2026-11-01 13:44:32 +01:00
tgbot_router.go fix(tgbot): treat messages sent on behalf of a chat as strangers 2026-11-01 13:47:40 +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