diff --git a/errors.go b/errors.go index 1137ab8..23dd389 100644 --- a/errors.go +++ b/errors.go @@ -133,6 +133,7 @@ var ( ErrKickedFromChannel = NewError(403, "Forbidden: bot was kicked from the channel chat") ErrNotStartedByUser = NewError(403, "Forbidden: bot can't initiate conversation with a user") ErrUserIsDeactivated = NewError(403, "Forbidden: user is deactivated") + ErrNotChannelMember = NewError(403, "Forbidden: bot is not a member of the channel chat") ) // Err returns Error instance by given description. @@ -250,6 +251,8 @@ func Err(s string) error { return ErrChannelsTooMuch case ErrChannelsTooMuchUser.ʔ(): return ErrChannelsTooMuchUser + case ErrNotChannelMember.ʔ(): + return ErrNotChannelMember default: return nil }