Giter Club home page Giter Club logo

Comments (3)

gamberoillecito avatar gamberoillecito commented on September 19, 2024 1

@deptyped good news, I was able to deploy to Netlify without needing to edit anything but I don't know what to set the webhook url to, how can everything still work? What is the webhook for?

Loose steps I followed (let me know if you need precise steps):

  1. Follow steps 1 to 3 in the readme as if you wanted to setup everything locally
  2. In your main Netlify page add a new site with "Deploy manually", this will be the web app
    immagine
  3. Drag and drop the dist (web-app/dist) folder when asked to do so by netlify
  4. Copy the url of the created website, if everything went well opening the website in the browser should show a blank page
  5. Edit the .env file and as WEB_APP_URL use the url from step 4.
  6. Create another website in netlify in the same way as before but this time drag and drop the bot folder (src/bot), this will host the bot

from notepher-bot.

gamberoillecito avatar gamberoillecito commented on September 19, 2024 1

src/bot is not enough, you need to deploy the entire repository (except web-app/ directory) to host the bot.

Ok so basically the bot does not work in my case 🤣. I was a bit suspicious that everything worked without any intervention but I wasn't bothered to investigate more. I thought that since the button was working the bot had to work as well.
I don't really need anything more than this.

Thank you very much again for you help

from notepher-bot.

deptyped avatar deptyped commented on September 19, 2024

Thanks for sharing! Unfortunately I don't have enough experience with Netlify. As far as I know, Netlify requires some Netlify-specific code to handle requests, and the bot will not work without code changes.

What is the webhook for?

To receive and process updates from Telegram. This is necessary for processing commands in the chat interface, such as /start. If web app that can be launched with menu button is enough for you, you can skip the bot deployment.

In the case of Netlify, in BOT_WEBHOOK you need to set url to the Netlify Function that runs the bot (not the web app).

6. Create another website in netlify in the same way as before but this time drag and drop the bot folder (src/bot), this will host the bot

src/bot is not enough, you need to deploy the entire repository (except web-app/ directory) to host the bot.

from notepher-bot.

Related Issues (6)

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.