We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d75d63 commit 0229184Copy full SHA for 0229184
1 file changed
app/chat/ls.go
@@ -31,6 +31,14 @@ func List(ctx context.Context) error {
31
}
32
33
return c.Run(ctx, func(ctx context.Context) error {
34
+ status, err := c.Auth().Status(ctx)
35
+ if err != nil {
36
+ return err
37
+ }
38
+ if !status.Authorized {
39
+ return fmt.Errorf("not authorized. please login first")
40
41
+
42
color.Blue("Getting dialogs...")
43
44
dialogs, err := query.GetDialogs(c.API()).BatchSize(100).Collect(ctx)
0 commit comments