yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.35k stars 1.52k forks source link

SetWebHookOptions missing ip_address #1213

Open mynote opened 2 months ago

mynote commented 2 months ago

It seems like that SetWebHookOptions is missing the flag ip_address which might be important since Telegram doesnt update DNS very often.

    interface SetWebHookOptions {
        url?: string | undefined;
        certificate?: string | Stream | undefined;
        max_connections?: number | undefined;
        allowed_updates?: string[] | undefined;
        secret_token?: string | undefined;
    }

should be

    interface SetWebHookOptions {
        url?: string | undefined;
        certificate?: string | Stream | undefined;
        max_connections?: number | undefined;
        allowed_updates?: string[] | undefined;
        secret_token?: string | undefined;
       ip_address?:string | undefined
    }