tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
3.95k stars 461 forks source link

400 Bad request "USER_IS_BLOCKED" #669

Open danilax86 opened 6 months ago

danilax86 commented 6 months ago

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

danilax86 commented 3 months ago

@demget Hi! Any updates on this one?

mkrou commented 5 days ago

I've faced the same problem