go-telegram-bot-vercel-boilerplate

command module
v0.0.0-...-8bdb414 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 4 Imported by: 0

README

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
  1. Create a new Telegram bot on Telegram and obtain the token.
  2. 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
  1. Log in to Vercel using the vercel login command.
  2. Deploy the bot to Vercel.
vercel

Follow the prompts, and your bot will be deployed on Vercel.

Deploy to Vercel One Click

Deploy with Vercel

Disable Vercel Authentication

From your Vercel dashboard:

  1. Select the project that you wish to enable Password Protection for
  2. Go to Settings then Deployment Protection
  3. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL