yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.17k stars 1.5k forks source link

docs: update api.md for setWebHook (fix #1083) #1084

Closed rznzippy closed 11 months ago

rznzippy commented 1 year ago

Description

Add missing setWebhook secret_token parameter to the documentation

References

XieJiSS commented 1 year ago

Thanks for the PR! I'd like to suggest to clarify in the doc that the user needs to verify the X-Telegram-Bot-Api-Secret-Token manually because there's currently no such verification logic implemented in node-telegram-bot-api.

Or maybe we can implement a verification logic inside the library so that the user won't need to bother with getting and checking headers for every webhook request.

JamolMeyliyev commented 1 year ago

secret-bot-token what?