Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update readme

thorwebdeve8c86b5bdc65
diff --git a/examples/edge-functions/README.md b/examples/edge-functions/README.md
index 6a49a8cfe31..f818dff14fa 100644
--- a/examples/edge-functions/README.md
+++ b/examples/edge-functions/README.md
@@ -11,6 +11,7 @@ The function examples are located in [`./supabase/functions`](./supabase/functio
- [`browser-with-cors`](./supabase/functions/browser-with-cors/index.ts): Handle CORS headers for function invocations from browser environments.
- [`select-from-table-with-auth-rls`](./supabase/functions/select-from-table-with-auth-rls/index.ts): Retrieve data from an authenticated user via RLS.
- [`send-email-smtp`](./supabase/functions/send-email-smtp/index.ts): Send an email using SMTP credentials.
+- [`telegram-bot`](./supabase/functions/telegram-bot/index.ts): Webhook handler for Telegram bots using [grammY](https://grammy.dev/).
## Develop locally
diff --git a/examples/edge-functions/supabase/functions/test/index.ts b/examples/edge-functions/supabase/functions/test/index.ts
deleted file mode 100644
index 820653ee25c..00000000000
--- a/examples/edge-functions/supabase/functions/test/index.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// Follow this setup guide to integrate the Deno language server with your editor:
-// https://deno.land/manual/getting_started/setup_your_environment
-// This enables autocomplete, go to definition, etc.
-
-import { serve } from "https://deno.land/[email protected]/http/server.ts"
-
-console.log("Hello from Functions!")
-
-serve(async (req) => {
- const { name } = await req.json()
- const data = {
- message: `Hello ${name}!`,
- }
-
- return new Response(
- JSON.stringify(data),
- { headers: { "Content-Type": "application/json" } },
- )
-})
-
-// To invoke:
-// curl -i --location --request POST 'http://localhost:54321/functions/v1/' \
-// --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs' \
-// --header 'Content-Type: application/json' \
-// --data '{"name":"Functions"}'