Hello, I checked the work on the test site - it works correctly. Step by step, the setup looks like this:
Send to Botfather: /newbot and give it a name.
Next, it will ask for the name of the bot. For example: site_bot.
Next /setdomain to Botfather and enter the name of the site, for example: https://site.com
Copy bot name and HTTP API.