mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-07-25 04:20:35 +00:00
go-telegram's DeleteWebhook posts an empty multipart form (DropPendingUpdates is omitempty); some networks answer that bodyless POST with an empty response, failing to parse and leaving the webhook active so getUpdates 409s forever. Replace it with a plain GET /deleteWebhook, which sends no body and parses the JSON reliably. Keeps pending updates for a lossless cutover.