feat: add gift purchase UI states for telegram recipients

- Add recipient_in_bot and bot_link fields to PurchaseStatus API type
- Show bot link instruction when gift recipient is not in bot
- Show "gift sent via Telegram" message when recipient is in bot
- Fix duplicate text rendering in GiftPendingActivationState
- Handle recipientInBot=null edge case safely
- Add gift notification translations for ru, en, zh, fa locales
This commit is contained in:
Fringg
2026-03-07 20:33:55 +03:00
parent d8214a80e7
commit eed077b019
6 changed files with 81 additions and 3 deletions

View File

@@ -3551,6 +3551,11 @@
"giftSentSuccess": "礼物已发送!",
"giftSentDesc": "收件人将通过邮件收到通知",
"giftPendingActivationDesc": "收件人已有活跃订阅。他们将收到激活礼物的链接。",
"giftTelegramSent": "已通过 Telegram 向收件人发送通知",
"giftTelegramNotInBot": "收件人尚未启动机器人。请将此链接发送给他们:",
"giftTelegramPendingSent": "已通过 Telegram 向收件人发送激活请求",
"giftTelegramPendingNotInBot": "收件人尚未启动机器人。请将机器人链接发送给他们以激活礼物:",
"openBot": "打开机器人",
"autoLoginFailed": "自动登录失败",
"autoLoginProcessing": "正在登录...",
"periodLabels": {