nextjs-telegram-template

Nextjs Telegram Bot is a simple Telegram bot that uses Nextjs to serve the bot's webhook.

MIT License

Stars
1

Nextjs Telegram Bot

This is a simple Telegram bot that uses Nextjs to serve the bot's webhook. It can be hosted on Vercel or any other serverless platform that supports Node.js.

Usage

  1. Run docker-compose:
docker-compose up -d
  1. Clone the repository:
git clone
  1. Install the dependencies:
npm install
  1. Copy .env.example to .env and fill in the
    required values:
cp .env.example .env
  1. Start the development server:
npm start

Required Environment Variables

  • BOT_TOKEN: The token of your Telegram bot. You can get it by talking to
    BotFather.
  • NGROK_AUTHTOKEN: The authtoken of your ngrok account. You can get it
    here.

License

This project is licensed under the MIT License - see the LICENSE file for details.