Comments (3)
@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):
- Follow steps 1 to 3 in the
readme
as if you wanted to setup everything locally - In your main Netlify page add a new site with "Deploy manually", this will be the web app
- Drag and drop the
dist
(web-app/dist
) folder when asked to do so by netlify - Copy the url of the created website, if everything went well opening the website in the browser should show a blank page
- Edit the
.env
file and asWEB_APP_URL
use the url from step 4. - 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.
src/bot
is not enough, you need to deploy the entire repository (exceptweb-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.
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)
- Alert HOT 1
- SyntaxError: Unexpected reserved word HOT 21
- Added to group but I don't know how to start it. HOT 2
- Add automatic "pull" of notes HOT 2
- docker compose HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notepher-bot.