Skip to content

fix(telegram): unify voucher aliases and show owner chat IDs - #156

Closed
rmtshnik wants to merge 1 commit into
SamNet-dev:mainfrom
rmtshnik:fix/voucher-telegram-ux
Closed

rmtshnik wants to merge 1 commit into
SamNet-dev:mainfrom
rmtshnik:fix/voucher-telegram-ux

Conversation

@rmtshnik

Copy link
Copy Markdown
Contributor

Summary

  • handle /voucher, /redeem, and /mp_redeem through the same redemption path
  • always bind Telegram redemption to the sender chat_id instead of accepting an arbitrary account label
  • display numeric Telegram chat IDs in voucher list
  • label old redeemed records without an owner as UNKNOWN (legacy)
  • add regression assertions for both public aliases and sender binding

Problem

The public commands used duplicated handlers and could behave differently. A caller-supplied label also made ownership ambiguous. In the server voucher list, Telegram owners appeared as internal tg_ labels, while legacy records with a missing owner appeared blank.

Verification

  • verified /voucher and /redeem on a deployed test bot
  • confirmed both commands record and display the sender numeric chat ID
  • git diff --check passes

Local Bash tests could not be executed on the Windows development host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant