Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (22 loc) · 1.5 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.5 KB

Telegram Bot Template for Vercel Edge Functions

Deploy with Vercel

This is an experimental version, we are open to your feedback ✨

Run locally

1. Install Vercel CLI

npm i -g vercel

2. Install CloudFlare tunnel (cloudflared)

Download link

3. Then run local dev server with tunnel

npm run dev-with-tunnel

And open link from terminal (ends with *.trycloudflare.com) to set WebHook

Now you can make some changes in src/bot.mjs

Documentation for TeleBot

Template structure:

P.S. Don't forget to remove or restrict api/setWebhook.mjs function before going to production

Made with 💜 by Vladislav Ponomarev