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 {