When a user blocks the bot, every message being sent to him is facing 403: Blocked by user. That's ok.
However, when you compose a message with exactly two photos and a one emoji as caption, then send it to a user, the very error message 400 "USER_IS_BLOCKED" is returned. So, it is not in a list of errors [1]. And it is not possible to handle this error without strings.Contains or whatsoever.
When a user blocks the bot, every message being sent to him is facing
403: Blocked by user.
That's ok.However, when you compose a message with exactly two photos and a one emoji as caption, then send it to a user, the very error message
400 "USER_IS_BLOCKED"
is returned. So, it is not in a list of errors [1]. And it is not possible to handle this error withoutstrings.Contains
or whatsoever.1: https://github.com/tucnak/telebot/blob/v3/errors.go