Skip to content

Add missing setWebhook secret_token parameter to the documentation #1083

Closed
@rznzippy

Description

@rznzippy

Feature Request

I have:

  • searched for such a feature request ( enhancement ) and found none

Introduction

Missing documentation of secret_token key of options argument on TelegramBot.setWebhook method. This parameter is supported by Telegram and allows fulfill every request with a secret token that makes it harder to spoof Telegram requests.

Example

const secretToken = '...'; // <!-- your secret token
const bot = new TelegramBot(token, {polling: false});
bot.setWebhook(webhookUrl, {secret_token: secretToken});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions