I want to delete everything pending_update_countin my bot!
The output of the command is below:
https:
Obviously, I replaced the real API token with xxx
:
{
"ok":true,"result":
{
"url":"",
"has_custom_certificate":false,
"pending_update_count":5154
}
}
As you can see, I have 5154unread til now! Updates (I am sure that pending updates are errors! Because no one uses this Bot! This is just a test bot)
By the way, this number is pending_update_countgrowing so fast! Now, when I write this post, the number has increased 51and reached 5205!
I just want to clear these pending updates. I'm sure this Bot is stuck in an endless loop!
Is there any way to get rid of it?
PS:
I also cleared the webhook url. But nothing has changed!
UPDATE:
The conclusion getWebhookInfois:
{
"ok":true,
"result":{
"url":"https://somewhere.com/telegram/webhook",
"has_custom_certificate":false,
"pending_update_count":23,
"last_error_date":1482910173,
"last_error_message":"Wrong response from the webhook: 500 Internal Server Error",
"max_connections":40
}
}
Why am I getting Wrong response from the webhook: 500 Internal Server Error?