Skip to content

Commit

Permalink
errors: add join request related errors (tucnak#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
awohsen authored Nov 19, 2023
1 parent 3c4d842 commit 4e31cc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ var (
ErrWrongTypeOfContent = NewError(400, "Bad Request: wrong type of the web page content")
ErrWrongURL = NewError(400, "Bad Request: wrong HTTP URL specified")
ErrForwardMessage = NewError(400, "Bad Request: administrators of the chat restricted message forwarding")
ErrAlreadyParticipant = NewError(400, "Bad Request: USER_ALREADY_PARTICIPANT", "User is already a participant")
ErrChannelsTooMuch = NewError(400, "Bad Request: CHANNELS_TOO_MUCH")
ErrUserChannelsTooMuch = NewError(400, "Bad Request: USER_CHANNELS_TOO_MUCH")
ErrHideRequesterMissing = NewError(400, "Bad Request: HIDE_REQUESTER_MISSING")
ErrUserIDInvalid = NewError(400, "Bad Request: USER_ID_INVALID")
)

// Forbidden errors
Expand Down

0 comments on commit 4e31cc6

Please sign in to comment.