- Stars as a second payment method for passes and credit packs, next to
Lightning (STARS_ENABLED, prices in [stars_prices] / STARS_PRICES, set
on their own). Invoices in XTR with no provider token and one price;
pre-checkout checks payer, state, currency and amount;
successful_payment settles through the same transaction as Lightning,
so entitlement is identical. Idempotent by telegram_payment_charge_id
(unique index).
- Migration 00009: payment_method on purchases and ledger entries, plus
stars_amount, tg_charge_id and refunded_at on purchases. Stars
purchases never reach LNbits.
- Chat: buy screen, /credits, /account and the over-limit offer show
Lightning first and a Pay with Stars button.
- Mini App: Lightning and Stars switch on Buy; Stars use
createInvoiceLink and WebApp.openInvoice, confirmed by the server-side
payment event.
- Owner /refund <purchase or charge ID> calls refundStarPayment and takes
back the credits or pass; refunded_payment messages do the same once.
/stats shows revenue by payment method.
- The sats referral reward counts Lightning purchases only.
- The bot now asks Telegram for pre_checkout_query updates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- /help: a short introduction with the user's default format, how to be
asked every time and the limits on one line, plus buttons Commands,
Account, Groups, Open app and Upgrade that switch the same message to
a section. Group commands are hidden in private chats; "Add me to a
group" takes their place.
- /quality: Ask every time, Best that fits my limit, Best, 1080p, 720p,
480p and Audio only, with the active one checked. Free users see which
qualities may go over their limit.
- /history: pages of five compact buttons (site, title, format, when),
a view per download with Send again, Thumbnail, Remove from history,
and Clear history with a confirmation. Thumbnails are grouped under
their video. Migration 00007 stores extractor, title, uploader and
profile on deliveries and adds a hidden flag.
- docs/SCREENS.md shows every screen in en, es and nl, generated by the
language test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One message per job: the status message is deleted once the file is
sent, or shortened to "Sent." when Telegram keeps it.
- No reply quotes in private chats; groups keep them.
- Queue status only mentions the position when the wait is above
QUEUE_NOTICE_THRESHOLD_SECONDS or somebody is ahead. Status edits are
throttled to one per 2.5 s per message; a state that arrives too soon
is shown later instead of dropped. The wait estimate is 0 with a free
slot.
- Caption with title (uploader and date when generic), uploader,
duration, a short source link without tracking parameters and an
optional "via @bot" line (CAPTION_ATTRIBUTION). Uploaded videos get a
320 px JPEG thumbnail; merged MP4s are written with faststart.
- Buttons under the result: Audio (MP3), Other quality, Thumbnail,
Delete. Requester only in groups.
- Language resolved once per update and passed in the context. A
fallback to English is logged as a bug; a test walks every screen in
Spanish and Dutch. Language picker on the first /start.
- Sizes without a zero decimal ("50 MB").
- First link of a new user shows the card once and sets the default to
"best that fits my limit".
- Errors offer the next step (Try again, Smaller quality, Upgrade, Open
app); passing lookup failures are retried once.
- Up to MULTI_LINK_MAX links per message; a link sent a moment ago gets
"already sent" with a Send again button.
- Mini App menu button, labelled per private chat in the user's
language.
- Personal /settings in private chats with an "Add me to a group"
button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>