From cf2183e9ca3308b807939b065fe95602ec9f72c3 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 3 Nov 2025 15:48:54 -0500 Subject: [PATCH] Add /status transport command --- telegram/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telegram/commands.go b/telegram/commands.go index 5c905dc..d97bea9 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -63,6 +63,7 @@ var transportCommands = map[string]command{ "setbio": command{0, []string{"Lorem ipsum"}, "update about", true, nil, true}, "setpassword": command{0, []string{"old", "new"}, "set or remove password", true, nil, true}, "config": command{0, []string{"param", "value"}, "view or update configuration options", false, nil, false}, + "status": command{0, []string{}, "display current login stage", false, nil, false}, "report": command{2, []string{"chat", "comment"}, "report a chat by id or @username", true, nil, true}, "add": command{1, []string{"@username"}, "add @username to your chat list", true, nil, true}, "join": command{1, []string{"https://t.me/invite_link"}, "join to chat via invite link or @publicname", true, nil, true}, @@ -517,6 +518,8 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) (strin } return strings.Join(entries, "\n"), true + case "status": + return fmt.Sprintf("Login stage: %v\nLogin: %v", c.loginStage, c.Session.Login), true case "report": contact, _, err := c.GetContactByUsername(args[0], false) if err != nil {