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:
co-authored by
Claude Opus 5.5
parent
6843053582
commit
123cede7f3
@@ -219,7 +219,7 @@ const fileMethods = "sendVideo|sendAudio|sendDocument|sendPhoto"
|
||||
func isResult(chat int64) func(fakeserver.Call) bool {
|
||||
return func(c fakeserver.Call) bool {
|
||||
_, ok := c.Button("fx:")
|
||||
return ok && (chat == 0 || c.ChatID() == chat)
|
||||
return ok && !c.Failed && (chat == 0 || c.ChatID() == chat)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -843,7 +843,10 @@ func TestStartHelpAndHints(t *testing.T) {
|
||||
|
||||
seq = h.srv.Seq()
|
||||
h.srv.PushMessage(alice, alice, "/help")
|
||||
h.wait(seq, "sendMessage", textHas("Up to 50 MB and 10 minutes per download"))
|
||||
help := h.wait(seq, "sendMessage", textHas("Your limits: 50 MB and 10 minutes per download, 5 downloads a day."))
|
||||
if !strings.Contains(help.Text(), "Your default format: <b>Best that fits my limit</b>") {
|
||||
t.Fatalf("help = %q", help.Text())
|
||||
}
|
||||
|
||||
seq = h.srv.Seq()
|
||||
h.srv.PushMessage(alice, alice, "hello bot")
|
||||
|
||||
Reference in New Issue
Block a user