6 {
7 // Replace this with _your_ express endpoint
8 url: "https://api.val.town/v1/express/vtdocs.telegramWebhookEchoMessage",
9 // Optionally, filter what kind of updates you want to receive here
10 allowed_updates: ["message"],
5 username: "stevekrouse",
6 headers: {
7 "X-GitHub-Api-Version": "2022-11-28",
8 },
9 });
2
3export const appendToComments = (
4 // the Run API accepts any number of JSON-encoded args
5 // here we accept a single arg
6 data: any,
1import { guestCount } from "https://esm.town/v/wesbos/guestCount";
2
3export function myApi(name) {
4 return "hi" + guestCount;
5}
10 profileImageUrl: string;
11}> =>
12 fetchJSON(`https://api.val.town/v1/users/${id}`, {
13 headers: token
14 ? {
6 version: number;
7}): Promise<Response> {
8 return fetch(`https://api.val.town/v1/vals/${id}/versions/${version}`, {
9 headers: {
10 Authorization: `Bearer ${token}`,
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}