Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Bad request "USER_IS_BLOCKED" #669

Open
danilax86 opened this issue Mar 23, 2024 · 2 comments
Open

400 Bad request "USER_IS_BLOCKED" #669

danilax86 opened this issue Mar 23, 2024 · 2 comments

Comments

@danilax86
Copy link

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
Copy link
Author

@demget Hi! Any updates on this one?

@mkrou
Copy link

mkrou commented Sep 27, 2024

I've faced the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants