Closed theAngriestman closed 2 years ago
as a temporary
$bot->call('setWebhook', ['url' => $webhookUrl, 'allowed_updates' => $allowedUpdates]);
I did almost the same
$this->client->call('setWebhook', ['url' => $webhook_url, 'certificate' => null, 'drop_pending_updates' => true]);
the drop_pending_updates option will remove all pending updates from the server
В методе установки и удаления веб хука есть параметр drop_pending_updates, который очищает очередь обновлений. Было бы отлично, если бы его добавили в методы setWebhook и deleteWebhook как необязательный параметр https://core.telegram.org/bots/api#setwebhook