Skip to content

artshmelev/telegram-bot-vercel-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use it

Click and deploy it on Vercel

Deploy with Vercel

Update Telegram bot settings

Do it inside your repo:

  1. Create .env file
BOT_TOKEN=<YOUR_BOT_TOKEN_HERE>
WEBHOOK_TOKEN=<YOUR_RANDOM_SECRET_PHRASE_HERE>
  1. Set webhook for getting updates to your bot
pnpm set-webhook <YOUR_DEPLOYMENT_URL_HERE>/api/webhook
  1. Set bot commands ( /start command only by default)
pnpm set-commands

About

Starting Template for Creating a Telegram Bot Using Vercel Functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published