Golang Telegram Bot Boilerplate in Vercel
A simple boilerplate to kickstart your Telegram bot development using Golang and deploy it on Vercel.
Features
- Golang: Built using the Go programming language.
- Telegram Bot API: Utilizes the Telegram Bot API for interacting with Telegram.
- Vercel Deployment: Easily deploy your bot on Vercel with serverless functions.
Getting Started
Prerequisites
- Go installed on your machine.
- Vercel CLI installed for deploying to Vercel.
Clone the Repository
git clone https://github.com/your-username/your-repo.git
cd your-repo
Set Up Telegram Bot
- Create a new Telegram bot on Telegram and obtain the token.
- Copy the token to the
.env
file.
TELEGRAM_BOT_TOKEN=your-telegram-bot-token
Local Development
go run main.go
Your bot should now be running locally.
Deploy to Vercel
- Log in to Vercel using the
vercel login
command.
- Deploy the bot to Vercel.
vercel
Follow the prompts, and your bot will be deployed on Vercel.
Deploy to Vercel One Click

Disable Vercel Authentication
From your Vercel dashboard:
- Select the project that you wish to enable Password Protection for
- Go to Settings then Deployment Protection
- Learn more about Vercel Authentication
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.