tucnak/telebot

400 Bad request "USER_IS_BLOCKED"

danilax86 opened this issue · 2 comments

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.

1: https://github.com/tucnak/telebot/blob/v3/errors.go