Replies: 2 comments
-
Hi! Thanks for pointing this out Will have to investigate on this, it is an interesting issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can I add my voice to this. I just spent 2 hours wondering why I was getting 404 only to realise that allow_messages_from_unknown_chats was set to false. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Short version:
Can you please clarify what is the reason to throw 404 error when unknown chats are not allowed in telegraph config? As far as I understand it will increase your bot
pending_update_count
. So, telegram api will resend this updates to your webhook over and over again "reasonable amount" of times.Details:
Can't find any mention about accepted response codes. So, I tested Telegram Webhook API myself.
It assumes your webhook responses with 2xx status code.
Any different response codes (3xx, 4xx, 5xx) result in
pending_update_count
increase.I can't decide whether it's good to always return 204 response, except for unexpected server errors with 5xx response.
What do you think about it?
vendor/defstudio/telegraph/src/Handlers/WebhookHandler.php
Beta Was this translation helpful? Give feedback.
All reactions