Giter Club home page Giter Club logo

telegram-bot-starter's Introduction

Telegram Bot Starter

A starter template for Telegram bots on Serverless, with Vercel, Netlify, and more support.

Built top of Nitro and Telegraf.

Local Development

  1. Create a bot with @BotFather, and get the bot token.
  2. Clone this repo.
  3. Run pnpm install to install dependencies.
  4. Copy .env.example to .env, and fill in the BOT_TOKEN and SECRET_HASH in .env.
  5. Run pnpm dev to start the development server.
  6. Expose your local server to the internet with Local Port Forwarding of VSCode (set Port Visibility to Public) or ngrok.
  7. Visit https://your-domain.com/telegram-hook?setWebhook=true
  8. Send /start to your bot.

Deployment

  1. Deploy on Vercel or Netlify, with BOT_TOKEN and SECRET_HASH environment variables.
  2. Visit https://your-domain.com/telegram-hook?setWebhook=true
  3. Send /start to your bot.

Credits

Thanks to the project jsjoeio/telegram-bot-template.

Sponsors

License

MIT License © 2023-PRESENT 三咲智子 Kevin Deng

telegram-bot-starter's People

Contributors

renovate[bot] avatar sxzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

telegram-bot-starter's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

npm
package.json
  • telegraf ^4.16.3
  • @sxzz/eslint-config ^3.8.5
  • @sxzz/prettier-config ^2.0.1
  • eslint ^8.57.0
  • prettier ^3.2.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.