1
2
3
4
5
6
7
8
9
10
const setWebhookExample = @vtdocs.telegramSetWebhook(
@me.secrets.telegramBotToken,
{
// Replace this with _your_ express endpoint
url: "https://api.val.town/v1/express/vtdocs.telegramWebhookEchoMessage",
// Optionally, filter what kind of updates you want to receive here
allowed_updates: ["message"],
secret_token: @me.secrets.telegramWebhookSecret,
},
);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v6
October 23, 2023