Skip to content

Latest commit

 

History

History

telegram-bot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Try it out: @supabase_example_bot

Deploying

  1. Create the function:
supabase functions deploy --no-verify-jwt telegram-bot
  1. Contact @BotFather to create a bot and get its token.
  2. Set the secrets:
supabase secrets set BOT_TOKEN=your_token FUNCTION_SECRET=random_secret
  1. Set your bot’s webhook URL to https://<PROJECT_NAME>.functions.supabase.co/telegram-bot (replacing <...> with respective values). To do that, you open the request URL in your browser:
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=https://<PROJECT_NAME>.functions.supabase.co/telegram-bot?secret=<FUNCTION_SECRET>