I am using --local mode and setting the webhook to a local server running in non-default port (e.g. 8080). Say, the full URL of the webhook is http://192.168.0.100:8080/api/v1/telegram-webhook. Now when a message arrives, the URL gets a hit with an Update object. But, this call includes the Host header as Host: 192.168.0.100. We expect this to be Host: 192.168.0.100:8080.
I am using this program as a docker container from the image: aiogram/telegram-bot-api.
The Host header with the non-default port included is important to us due to some application level firewall rules blocking it.