owpengram-server/internal/domain
Astra 2bdb1ecf37 usernames: operator reserved-username blocklist
A plain blocklist for names like @support - separate from the collectible
system, so a reservation has no owner, no price and no "bought on Fragment"
badge.

- reserved_usernames table + migration.
- Enforced in replacePeerUsernameTx (the single editable-username write point:
  account.updateUsername, channels.updateUsername, @BotFather /setusername) and
  in the collectible mint path; a reserved name returns USERNAME_OCCUPIED.
- admin.Service: ReserveUsername / UnreserveUsername (journalled commands) and
  the ReservedUsernames listing.
- adminapi: /v1/reserved-usernames{,/reserve,/unreserve}.
- telesrv-admin panel + a "Reserved Usernames" page in the web UI (dist rebuilt).
- Postgres and in-memory store implementations; the memory registry gains an
  optional reserved-name check so tests exercise the same rule.
2026-09-14 12:04:43 +01:00
..
account.go merged with fixes 2026-09-09 02:49:30 +03:00
account_deletion.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
admin.go fix: sync account freeze peer visibility 2026-07-22 02:03:00 +08:00
ai.go feat: sync AI compose and ChatBot features 2026-07-03 19:43:20 +08:00
album_group.go perf: sync protocol and core hardening updates 2026-07-11 19:48:26 +08:00
auth_delivery_report.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
authorization.go merged with fixes 2026-09-09 02:49:30 +03:00
boost.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
boost_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
bootstrap_update.go feat: defer login bootstrap updates 2026-07-05 03:28:19 +08:00
bot.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
bot_inline.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
bot_verification.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
bot_verification_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
botapi_chat.go botapi: getChatMemberCount, getChatMember, and a fuller getChat 2026-09-14 12:00:03 +01:00
botapi_rich_message.go feat: sync bot rich messages and inline menus 2026-07-21 15:44:43 +08:00
botapi_update.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
botapi_update_test.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
botapi_webhook.go feat: sync bot keyboards and callbacks 2026-07-19 20:38:48 +08:00
branding_test.go added messages templates 2026-09-01 14:40:06 +03:00
broadcast.go fixes 2026-09-01 12:50:18 +03:00
business.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
channel.go forum: fix reply_to_top_id for replies inside a forum 2026-09-14 11:55:23 +01:00
channel_banned_rights.go feat: sync rich text message support 2026-07-04 21:15:35 +08:00
channel_errors.go fix: sync monoforum suggested post flow 2026-07-22 16:08:44 +08:00
chatlist.go feat: sync chatlist sharing support 2026-07-06 21:06:33 +08:00
client_session.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
client_session_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
client_telemetry.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
client_telemetry_test.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
collectible_username.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
community.go feat: sync community aggregates 2026-07-20 16:46:02 +08:00
contact.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
dialog.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
doc.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
emailphone.go fixes 2026-07-18 10:33:17 +03:00
emailphone_test.go merged with fixes 2026-09-09 02:49:30 +03:00
ephemeral.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
ephemeral_test.go feat: sync ephemeral transient messages 2026-07-20 16:43:27 +08:00
gif_catalog.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
groupcall.go feat: sync group call livestream support 2026-07-06 14:32:45 +08:00
help.go Initial open source release 2026-06-04 01:37:39 +08:00
langpack.go fix(langpack): sync WebK catalog alias support 2026-07-25 14:08:49 +08:00
livestream.go feat: sync group call livestream support 2026-07-06 14:32:45 +08:00
login_code_delivery.go added messages templates 2026-09-01 14:40:06 +03:00
login_code_delivery_test.go added messages templates 2026-09-01 14:40:06 +03:00
login_welcome_template.go added messages templates 2026-09-01 14:40:06 +03:00
login_welcome_template_test.go merged with fixes 2026-09-09 02:49:30 +03:00
media.go fix for retention logic 2026-09-03 05:00:42 +03:00
media_category.go merged with fixes 2026-09-09 02:49:30 +03:00
media_category_test.go feat: sync iOS compatibility support 2026-07-13 00:58:57 +08:00
media_errors.go adding more functions to media managament system 2026-09-03 00:54:09 +03:00
media_refs.go fix for retention logic 2026-09-03 05:00:42 +03:00
media_test.go feat: sync built-in sticker bot 2026-07-01 21:55:55 +08:00
message.go merged with fixes 2026-09-09 02:49:30 +03:00
message_entity_autodetect.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
message_entity_autodetect_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
message_errors.go merged with fixes 2026-09-09 02:49:30 +03:00
message_markup.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
message_markup_test.go feat: sync HTTP callback OIDC setup 2026-07-21 18:18:33 +08:00
message_reply_external.go merged with fixes 2026-09-09 02:49:30 +03:00
message_reply_external_test.go merged with fixes 2026-09-09 02:49:30 +03:00
message_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
moderation.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
moderation_case.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
moderation_registry.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
moderation_test.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
notify.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
passkey.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
phone.go feat: sync recent call and channel fixes 2026-07-01 14:34:59 +08:00
phone_change.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
phone_identity_test.go merged with fixes 2026-09-09 02:49:30 +03:00
poll.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
premium.go feat(premium): sync promo video catalog seed 2026-07-26 15:59:25 +08:00
premium_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
privacy.go feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
privacy_evaluate.go merged with fixes 2026-09-09 02:49:30 +03:00
reserved_username.go usernames: operator reserved-username blocklist 2026-09-14 12:04:43 +01:00
reserved_usernames.go fix 2026-08-27 13:23:17 +03:00
saved_dialog.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
saved_music.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
secretchat.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
stats.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
sticker_collection.go feat: sync built-in sticker bot 2026-07-01 21:55:55 +08:00
story.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
system.go merged with fixes 2026-09-09 02:49:30 +03:00
telegram_login.go feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
telegram_login_test.go feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
temp_auth_key.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
themes.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
translation.go feat: sync message translation support 2026-07-12 14:20:26 +08:00
update.go feat: sync multilayer td integration 2026-07-15 13:32:06 +08:00
update_event.go fix for muting an account 2026-09-07 09:31:06 +03:00
user.go removed all "paid" features - no more stars, gifts, or grams 2026-08-07 01:50:10 +03:00
user_errors.go fix(admin): close PR review blockers 2026-07-23 13:29:04 +08:00
verification.go feat: add NFT usernames and bot verification (#22) 2026-07-28 01:18:00 +08:00
webpage.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
webpage_test.go chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
welcome_message.go welcome message: point updates-channel mention at @ziodotsh 2026-09-14 11:58:47 +01:00
welcome_message_test.go welcome message: link @zio with a mention entity 2026-09-14 11:55:23 +01:00