36 }
37
38 await fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, {
39 method: "POST",
40 headers: { "Content-Type": "application/json" },
154 formData.append('client_secret', clientSecret);
155
156 const response = await fetch(url, {
157 method: 'POST',
158 headers: {
195 };
196
197 const response = await fetch(url, {
198 method: 'POST',
199 headers,
21});
22
23// HTTP vals expect an exported "fetch handler"
24// This is how you "run the server" in Val Town with Hono
25export default app.fetch;
63 }
64 async getCount() {
65 const t = await fetch(this.href, {
66 headers: { Accept: "application/json" },
67 });
80 if (this.hasReacted()) return this.setReacted();
81 this.setAttribute("aria-busy", "true"),
82 await fetch(this.href, {
83 method: "post",
84 body: this.emoji,
210});
211
212export default app.fetch;
52 setResults([]);
53 try {
54 const response = await fetch("http://localhost:3000/search", {
55 method: "POST",
56 headers: { "Content-Type": "application/json" },
13const app = new Hono();
14app.get("/", ObservationsEnjoyExisting);
15export default app.fetch;
314
315 try {
316 const response = await fetch(window.location.origin, {
317 method: 'POST',
318 headers: { 'Content-Type': 'application/json' },
137app.get("/ImOKTheBullIsDead", ImOKTheBullIsDead);
138
139export default app.fetch;
46app.get("/ImOKTheBullIsDead", ImOKTheBullIsDead);
47
48export default app.fetch;