Skip to content

Webhook Callback Does not Include HTTP Port in Host Header #805

@chitholian

Description

@chitholian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions