Phase 2: command screens

- /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>
This commit is contained in:
Michilis
2026-11-18 20:46:13 +00:00
co-authored by Claude Opus 5.5
parent 6843053582
commit 123cede7f3
21 changed files with 3758 additions and 183 deletions
+71 -30
View File
@@ -21,25 +21,17 @@ group = """
Use /dl with a link, or reply /dl to a message that has a link."""
[help]
text = """
<b>How to use me</b>
In a private chat, just send a link. I show a card and you pick the format.
In a group, use /dl with a link, or reply /dl to a message that has a link.
<b>Commands</b>
/dl link - download a video
/audio link - download the audio as MP3
/thumb link - get the thumbnail
/subs link - get the subtitles
/info link - show formats and sizes without downloading
/fresh link - download again instead of using a saved copy
/history - your past downloads, with one tap to get them again
/queue - your running downloads
/cancel - cancel your downloads
/quality - your default format
/language - change my language
groups_group = """
<b>This group</b>
/groupwallet - the group's balance and top up
/grouppass - buy a pass for the whole group
/settings - group settings, for admins
/grouplang - the bot's language here, for admins
/autodetect - fetch pasted links without a command, for admins"""
groups_private = """
<b>Groups</b>
Add me to a group and everyone there can download with /dl. A group can have its own wallet and pass, and its admins get settings of their own. Those commands show up in the group."""
account = """
<b>Account</b>
/account - your pass, balance and usage
/limits - the limits that apply to you
@@ -48,13 +40,34 @@ In a group, use /dl with a link, or reply /dl to a message that has a link.
/redeem code - use a gift code
/referral - invite friends and earn sats
/donate - send a tip
<b>In groups</b>
/groupwallet and /grouppass - the group's balance and pass
/settings - group settings, for admins
<b>Your limits</b>
Up to {{.MaxSize}} and {{.MaxDuration}} per download."""
/settings - your settings in one place"""
commands_group = """
<b>Commands in this group</b>
/dl link - download, or reply /dl to a message with a link
/audio link - the audio as MP3
/thumb link - the thumbnail
/info link - formats and sizes
/queue - your running downloads
/cancel - cancel them"""
commands = """
<b>Commands</b>
/dl link - download, in your default format
/audio link - the audio as MP3
/thumb link - the thumbnail
/subs link - the subtitles
/info link - formats and sizes, without downloading
/fresh link - download again instead of using a saved copy
/queue - your running downloads
/cancel - cancel them
/history - past downloads, one tap to get them again
/quality - your default format
/language - my language"""
limits = "Your limits: {{.MaxSize}} and {{.MaxDuration}} per download, {{.Daily}} downloads a day."
format_group = "Format in this group: <b>{{.Quality}}</b>. Admins change it in /settings."
format = "Your default format: <b>{{.Quality}}</b>. With a default I start right away. To pick a format for every link, choose <i>Ask every time</i> in /quality."
intro = """
<b>How to use me</b>
Send me a link to a video or a song and I send the file back. In a group, use /dl with a link, or reply /dl to a message that has one."""
[cmd]
unknown = "I do not know that command. Try /help."
@@ -143,6 +156,15 @@ pick = "Pick a format:"
cancelled = "Cancelled."
[btn]
maybe_over = "{{.Label}} ⚠"
remove_from_history = "Remove from history"
clear_yes = "Yes, clear it"
clear_history = "Clear history"
older = "Older ›"
newer = "‹ Newer"
help_groups = "Groups"
help_account = "Account"
help_commands = "Commands"
checked = "✓ {{.Label}}"
back = "Back"
add_to_group = "Add me to a group"
@@ -173,7 +195,6 @@ check_payment = "Check payment"
this_file = "This file only"
buy_for_me = "Buy for me"
subs_auto = "{{.Lang}} (auto)"
resend = "{{.N}}. {{.Title}}"
[status]
sent = "Sent."
@@ -190,6 +211,7 @@ failed = "That did not work. {{.Reason}}"
refunded = "{{.Amount}} went back to your balance."
[notice]
removed = "Removed."
cannot_delete = "Telegram only lets me delete messages from the last 48 hours."
group_only = "This command works in groups."
admins_only = "Only admins of this group can do that."
@@ -421,9 +443,14 @@ pick = "Pick a subtitle language:"
none = "This video has no subtitles."
[history]
cleared = "Your history is empty now."
yesterday = "yesterday"
today = "today"
item = "{{.Site}} · {{.Title}} · {{.Format}} · {{.When}}"
empty = "You have no past downloads yet."
header = "<b>Your past downloads</b>\nTap one to get it again."
line = "{{.N}}. {{.Title}} · {{.Label}}"
header = """
<b>Your past downloads</b> · {{.Count}}
Page {{.Page}} of {{.Pages}}. Tap one to see it and get it again."""
# --- Owner commands ---------------------------------------------------------
@@ -559,6 +586,7 @@ off = "off"
none = "none"
[settings]
format = "Default format"
language = "Language"
ask = "Ask every time"
audio_only = "Audio only"
@@ -606,10 +634,15 @@ Send these in the group, as an admin:
/spending rule - who may spend group credits"""
[quality]
over_note = "⚠ Can be over your limit of {{.MaxSize}} for longer videos. I then offer a smaller quality or an upgrade."
audio_only = "Audio only (MP3)"
fit = "Best that fits my limit"
ask = "Ask every time"
pick = "Pick your default format. I will then start right away instead of asking."
pick = """
<b>Your default format</b>
<i>Ask every time</i>: I show the formats for each link.
<i>Best that fits my limit</i>: I start at once with the best quality within your size limit.
A quality or MP3: I start at once in that format."""
set = "Default format: {{.Quality}}"
[language]
@@ -871,3 +904,11 @@ via = "via @{{.Bot}}"
[dup]
already_sent = "I sent you this a moment ago, it is just above. Tap below to get it again."
[history.days_ago]
one = "{{.Count}} day ago"
other = "{{.Count}} days ago"
[history.clear_confirm]
one = "Remove {{.Count}} download from your history? Files already in this chat stay where they are."
other = "Remove all {{.Count}} downloads from your history? Files already in this chat stay where they are."