Skip to content

Commit

Permalink
Update auth.go
Browse files Browse the repository at this point in the history
Edit error strings
  • Loading branch information
RoseLoverX authored Jul 3, 2023
1 parent 78ebce0 commit 3c29970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ func (c *Client) Login(phoneNumber string, options ...*LoginOptions) (bool, erro
if err == nil {
break
}
if matchError(err, "The phone code entered was invalid") {
if matchError(err, "The provided phone code is invalid.") {
fmt.Println("The phone code entered was invalid, please try again!")
continue
} else if matchError(err, "Two-steps verification is enabled") {
} else if matchError(err, "2FA is enabled, use a password to login") {
var passwordInput string
fmt.Println("Two-steps verification is enabled")
for {
Expand Down

0 comments on commit 3c29970

Please sign in to comment.