Git Product home page Git Product logo

biliarchiverbot's Introduction

biliarchiverbot

Deploy to Vercel

  1. fork this repository

  2. open vercel.com and create a new project

  3. connect the project to your forked repository

  4. set the environment variables.

    If you don't have a bot yet, you can create one by talking to @BotFather on Telegram.

    If you don't know the deployed URL, you can deploy the project first and then set the environment variables later.

     BILIARCHIVER_WEBAPP=<THE_DEPLOYED_WEBAPP_URL>
     BILIARCHIVER_USERNAME=<THE_TELEGRAM_USERNAME_OF_BILIARCHIVER_BOT>
     BILIARCHIVER_API=<THE_API_URL_OF_BILIARCHIVER>
     BILIARCHIVER_BOT=<YOUR_BOT_TOKEN>
  5. deploy

  6. set the bot's webhook to the deployed URL. You can copy the link below and replace your bot's token and the deployed URL.

    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=<DEPLOY_URL>/bot/webhook

Local Development

  1. clone this repository

  2. install the dependencies

    pnpm install
  3. create a .env file and set the environment variables.

     BILIARCHIVER_WEBAPP=<THE_DEPLOYED_WEBAPP_URL>
     BILIARCHIVER_USERNAME=<THE_TELEGRAM_USERNAME_OF_BILIARCHIVER_BOT>
     BILIARCHIVER_API=<THE_API_URL_OF_BILIARCHIVER>
     BILIARCHIVER_BOT=<YOUR_BOT_TOKEN>
  4. start the development server

     pnpm dev
  5. set the bot's webhook to the deployed URL.

    You may use ngrok to expose your local server to the internet, or open the port 5173 on your router or the VPS. Then you can copy the link below and replace your bot's token and the deployed URL.

    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=<DEPLOY_URL>/bot/webhook

biliarchiverbot's People

Contributors

ovler-young avatar overflowcat avatar

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.