Skip to content

Conversation

@igrmk
Copy link

@igrmk igrmk commented Mar 1, 2019

Sometimes you need to know specific error code returned by API

@Syfaro
Copy link
Member

Syfaro commented Apr 24, 2019

Is there a time when this is actually useful? The Bot API docs seem to glance over it and say it's not very practical.

An Integer ‘error_code’ field is also returned, but its contents are subject to change in the future.

@igrmk
Copy link
Author

igrmk commented Apr 24, 2019

Yes, it is useful.
if it is 403, then it means that the user has blocked the bot.

@Syfaro Syfaro merged commit 87e7035 into go-telegram-bot-api:master Apr 24, 2019
@Syfaro
Copy link
Member

Syfaro commented Apr 24, 2019

Ah, I didn’t realize it corresponded to HTTP status codes (is it always like that?). It’s weird the Bot API docs don’t talk about it more.

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

Successfully merging this pull request may close these issues.

3 participants