Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ https://api.telegram.org/bot<authToken>/setWebhook?url=<'Your Base URL'>/telegra
>Because Telegram doesn't send any type of information to verify the identity of the origin of the update, it is highly recommended that you include a sort of hash in your webhookEndpoint. I.e., rather than having this: `webhookEndpoint: '/webhook/'`, do something more like this: `webhookEndpoint: '/webhook92ywrnc9qm4qoiuthecvasdf42FG/'`. This will assure that you know where the request is coming from.


>If you are not too sure how webhooks work and/or how to get them to run locally, go to [webhooks](/getting-started/webhooks) to read some more.
>If you are not too sure how webhooks work and/or how to get them to run locally, go to [webhooks](http://botmasterai.com/documentation/latest/getting-started/webhooks.html) to read some more.

## Code

Expand All @@ -62,7 +62,7 @@ const telegramSettings = {
credentials: {
authToken: 'YOUR authToken',
},
webhookEndpoint: '/webhook1234/',
webhookEndpoint: 'webhook1234',
};

const telegramBot = new TelegramBot(telegramSettings);
Expand Down