Giter Site home page Giter Site logo

Comments (8)

sojan-official avatar sojan-official commented on May 28, 2024 1

ref: #7485 (comment)

for debugging telegram errors on self-hosted

ref: https://www.chatwoot.com/docs/contributing-guide/telegram-channel-setup

from chatwoot.

wedcanto avatar wedcanto commented on May 28, 2024 1

ref: #7485 (comment)

for debugging telegram errors on self-hosted

ref: https://www.chatwoot.com/docs/contributing-guide/telegram-channel-setup

Thank you for trying to help!
I did:

  • installed ngrok, registered on the site and got the key
  • ran it with the command ngrok http 3000
  • change FRONTEND_URL in .env file on - https://af31-2a03-6f01-1-2-00-1333ngrok-free.app
  • sudo systemctl restart chatwoot.target
  • Tried to run the command:
    curl https://api.telegram.org/bot{999999999:AAETW4vpbwZZZ2yhLr-durC1_gypcdNro21U}/getWebhookInfo

Got the answer:

{
  "ok": true,
  { "result": {
    { "url": "https://af31-2a03-6f01-1-2-00-1333ngrok-free.app/webhooks/telegram/999999999:AAETW4vpbwZZ2yhLr-durC1_gypcdNro21U",
    "has_custom_certificate": false,
    "pending_update_count": 4,
    "last_error_date": 1710268040,
    "last_error_message": "Wrong response from the webhook: 404 Not Found",
    "max_connections": 40,
    "ip_address": "3.125.102.39"
  }
}

P.S. For security, in my reply, I changed the ngrok URL and Telegram token a bit (so that no one would use my URL or token)

Maybe I'm doing something wrong?

from chatwoot.

sojan-official avatar sojan-official commented on May 28, 2024 1

@wedcanto, the next thing you can do is verify whether these webhooks are coming correctly to the Chatwoot . you can see it in the logs. Also note that the telegram payload has an error

" "last_error_message": "Wrong response from the webhook: 404 Not Found","

Means telegram is experiencing 404 at some point. ensure that your ngrok URL is pointed to the correct port.

from chatwoot.

sojan-official avatar sojan-official commented on May 28, 2024 1

closing as original issue is resolved.

please refer: https://github.com/chatwoot/chatwoot/tree/develop/app/services/telegram

from chatwoot.

linear avatar linear commented on May 28, 2024

PR-985 Integration with Telegram does not work

from chatwoot.

wedcanto avatar wedcanto commented on May 28, 2024

PR-985 Integration with Telegram does not work

I'm not allowed access to your link.

from chatwoot.

wedcanto avatar wedcanto commented on May 28, 2024

@wedcanto, the next thing you can do is verify whether these webhooks are coming correctly to the Chatwoot . you can see it in the logs. Also note that the telegram payload has an error

" "last_error_message": "Wrong response from the webhook: 404 Not Found","

Means telegram is experiencing 404 at some point. ensure that your ngrok URL is pointed to the correct port.

Thank you so much for trying to help!
I did the following - from scratch, installed Chatwoot not in the docker, but following the "Linux VM" instructions. And everything worked...

That's very strange, because I've already tried reinstalling several times. I think the bug can be closed.

But I have a question - where are the Telegram bot files in Chatwoot? I want to order some improvements from a programmer. I need to expand the capabilities of the Telegram bot. I want to send not only text and pictures, but also "Buttons" so that the user can choose from the options I offer.

from chatwoot.

Related Issues (20)

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.