leam-tech / frappe_telegram

Telegram Bot support for Frappe / ERPNext.
Other
32 stars 24 forks source link

How to setup production? #16

Open dev-iot-jogja opened 2 years ago

dev-iot-jogja commented 2 years ago

Hi, how to setup production?

I tried to run bench telegram supervisor-add --webhook MyBot

then run bench telegram nginx-add MyBot

and on telegram bot menu I set NGINX Path to /telebot

and it still not working.

I check bot error log and I found telegram.error.BadRequest: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443

did I miss something?

RJPvT commented 8 months ago

@dev-iot-jogja did you find the sollution ?

Telegram webhooks have changed in the last year and therefore we had some trouble to. if you still have trouble let me know and i'le reproduce my steps here as a manual.

fahimalizain commented 8 months ago

@RJPvT We haven't been able to use this app with recent frappe versions. While you were testing, how healthy did you find this to be? Also, thank you for the PRs you had sent with clear explanations!

RJPvT commented 8 months ago

@fahimalizain no problem!

We're on v14 now andhave nog had much trouble with it. Even have a whole chatbot running for information query's by staff members.

What were your issues ? Perhaps some of those were caught by our ons additions and i can help with rectifying them.

Venkateshvenki404224 commented 2 months ago

Is this issue resolved ? @RJPvT Because even i am getting the same issue .

image The webhook URL is not getting set that's why i am not able to receive any update in my telegram.