Skip to content

Commit

Permalink
feat(telegram): mark AUTH_KEY_DUPLICATED as permanent
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 29, 2024
1 parent d8a50b1 commit b0161bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *Client) isPermanentError(err error) bool {
if errors.Is(err, exchange.ErrKeyFingerprintNotFound) {
return true
}
if tgerr.Is(err, "AUTH_KEY_UNREGISTERED", "SESSION_EXPIRED") {
if tgerr.Is(err, "AUTH_KEY_UNREGISTERED", "SESSION_EXPIRED", "AUTH_KEY_DUPLICATED") {
return true
}
if auth.IsUnauthorized(err) {
Expand Down

0 comments on commit b0161bd

Please sign in to comment.