If a bot token previously had a webhook configured (e.g. from a prior install), getUpdates returns nothing and chat ID detection fails. Adding deleteWebhook call before polling fixes fresh installs that reuse an existing bot token.
465 KiB
465 KiB