Building a Telegram Bot with Edge Functions

Опубликовано: 03 Январь 2023
на канале: Supabase
5,924
103

We can use Supabase Edge Functions[0] to handle Telegram Bot Webhooks with the grammY[1] framework. grammY is an open source Telegram Bot Framework which makes it easy to handle and respond to incoming messages.

Find the code: https://github.com/thorwebdev/edgy-ed...
Find more grammY examples: https://github.com/grammyjs/examples

🎙️ Presented by Thor Schaeff (@thorwebdev https://go.thor.bio/x)

Chapters

00:00 Intro
00:27 Project Setup
02:36 grammY - The Telegram Bot Framework
03:18 Create new Supabase Edge Function
04:05 Handling Telegram slash commands with grammY
07:25 Create a new Telegram Bot via the BotFather
11:15 Set the Telegram Webhook URL
11:48 Test Telegram webhooks locally with ngrok
12:55 Deploy a public Supabase Edge Function webhook handler

About Edgy Edge Functions

Edgy Edge Functions is a video series where we explore Supabase Edge Functions[0] and Deno[2] functionality and features.

If there's something you'd like to learn about, please open an issue[3] and let me know on this Tweet thread[4].

Thanks for stopping by! Denosaur and I will see you soon \o/

[0] https://supabase.com/edge-functions
[1] https://grammy.dev/
[2] https://deno.land/
[3] https://github.com/thorwebdev/edgy-ed...
[4]   / 1595719098863788032  


Смотрите видео Building a Telegram Bot with Edge Functions онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Supabase 03 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,924 раз и оно понравилось 103 людям.