Skip to content

Commit

Permalink
chore(login): add warning for code login
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Oct 11, 2022
1 parent 5ccc116 commit 841a773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/chat/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Export(ctx context.Context, chat string, from, to int, output string) error
return err
}

color.Yellow("Warning: Export only generates minimal JSON for tdl download, not for backup.")
color.Yellow("WARN: Export only generates minimal JSON for tdl download, not for backup.")
color.Cyan("Occasional suspensions are due to Telegram rate limitations, please wait a moment.")
fmt.Println()
color.Blue("Indexing... [%s/%d]: [%s ~ %s]", peer.VisibleName(), peer.ID(), time.Unix(int64(from), 0).Format(layout), time.Unix(int64(to), 0).Format(layout))
Expand Down
1 change: 1 addition & 0 deletions app/login/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func Code(ctx context.Context) error {
return err
}

color.Yellow("WARN: Using the built-in APP_ID & APP_HASH may increase the probability of blocking")
color.Blue("Login...")

flow := auth.NewFlow(termAuth{}, auth.SendCodeOptions{})
Expand Down

0 comments on commit 841a773

Please sign in to comment.