Phase 5: Telegram affiliate program
- docs/AFFILIATE.md: the owner's setup in Telegram (profile editor or BotFather's Mini App), commission and duration rules (raise only, end with commission 0, about 24 hours), who counts as referred, the link formats, and the no-double-rewards rule. Checked against Telegram's current pages. - Affiliate purchases go through Stars invoices inside the Mini App (createInvoiceLink and WebApp.openInvoice, from Phase 4). - /start accepts any payload; only our own rf_ (and old ref_) links set an inviter. A test sends payloads of every shape, Telegram's affiliate prefix included. - Mini App Me page: an Earn section explaining both programs, with how to join Telegram's from the bot's profile, behind AFFILIATE_ENABLED. No affiliate numbers are computed or shown. - /referral notes that Stars purchases earn through Telegram's program. - The optional MTProto CLI is left out, with the reason in the docs. - The Mini App browser test checks the Earn section in en, es and nl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2b5625e9d4
commit
d64db03f21
@@ -858,6 +858,16 @@ one = "Usage, last day"
|
||||
other = "Usage, last {{.Count}} days"
|
||||
|
||||
[app.me]
|
||||
affiliate_open = "Open the bot's profile"
|
||||
affiliate_step3 = "Copy the link Telegram gives you and share it."
|
||||
affiliate_step2 = "Tap the affiliate program and join it."
|
||||
affiliate_step1 = "Open the profile of {{.Bot}} in Telegram."
|
||||
affiliate_text = "Share a Telegram affiliate link to this app. When somebody opens the app for the first time through your link, you get a share of the Stars they spend in it, for as long as the program says."
|
||||
affiliate_note = "Telegram runs this program and pays your share in Stars. You see what you earn in Telegram, not here."
|
||||
affiliate_title = "Telegram affiliate program"
|
||||
earn_note_both = "There are two ways to earn. Our own referral pays you sats when people you invite buy over Lightning. Telegram's affiliate program pays you a share of the Stars they spend in this app. A purchase counts for one of the two, never both."
|
||||
earn_note_sats = "Invite friends with your link. When somebody you invited pays for a first purchase over Lightning, you get sats in credits."
|
||||
earn_title = "Earn"
|
||||
qr = "QR code"
|
||||
pending = "Waiting for the daily cap"
|
||||
earned = "Earned"
|
||||
@@ -919,6 +929,7 @@ one = "Remove {{.Count}} download from your history? Files already in this chat
|
||||
other = "Remove all {{.Count}} downloads from your history? Files already in this chat stay where they are."
|
||||
|
||||
[referral]
|
||||
affiliate_note = "Purchases paid with Telegram Stars do not count here: they earn through Telegram's affiliate program. You join it from the profile of @{{.Bot}} in Telegram."
|
||||
qr_caption = """
|
||||
Your invite link as a QR code:
|
||||
{{.Link}}"""
|
||||
|
||||
Reference in New Issue
Block a user