chatwoot icon indicating copy to clipboard operation
chatwoot copied to clipboard

Chatwoot-Telgram integration chatwoot is running on cloud plotform but after integrating telegram bot messages are not coming and going

Open jayachandrab opened this issue 2 years ago • 10 comments

Chatwoot-Telgram integration chatwoot is running on cloud platform but after integrating telegram bot messages are not coming and going. Please do the needful

jayachandrab avatar Sep 12 '22 04:09 jayachandrab

@jayachandrab, Could you provide a screencast of the behavior?

sojan-official avatar Sep 14 '22 12:09 sojan-official

image Please find the attached screen shot

jayachandrab avatar Sep 14 '22 12:09 jayachandrab

as shown in the above screen shot there is not send message option or not receiving any messages sent to bot by other users.

jayachandrab avatar Sep 14 '22 12:09 jayachandrab

@jayachandrab, you can verify whether your telegram bot is successfully connected to the chatwoot installation by calling the following URL

#replace your bot token with the actual token
https://api.telegram.org/bot{your_bot_token}/getWebhookInfo

If successfully connected, it will return your installation/webhooks/telegram. if it is not connected, try deleting the inbox and reconnecting again.

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

sojan-official avatar Sep 14 '22 13:09 sojan-official

I got the below response {"ok":true,"result":{"url":"","has_custom_certificate":false,"pending_update_count":7}} when hit the below url. https://api.telegram.org/bot{your_bot_token}/getWebhookInfo

jayachandrab avatar Sep 14 '22 13:09 jayachandrab

after registering webhook url with blew link

https://api.telegram.org/bot5691078884:AAGFaarH8Ku8Ap85ruA2v2N7NpKHd0_odf0/setWebhook?url=https://blai.cloudgaming.my

i got below response for the below url

https://api.telegram.org/bot5691078884:AAGFaarH8Ku8Ap85ruA2v2N7NpKHd0_odf0/getWebhookInfo

{"ok":true,"result":{"url":"https://blai.cloudgaming.my","has_custom_certificate":false,"pending_update_count":9,"last_error_date":1663161009,"last_error_message":"SSL error {error:0A000086:SSL routines::certificate verify failed}","max_connections":40,"ip_address":"52.187.37.182"}}

jayachandrab avatar Sep 14 '22 13:09 jayachandrab

@jayachandrab please refer : https://stackoverflow.com/questions/49308744/telegram-bot-ssl-error-ssl-error-error1416f086ssl-routinestls-process-serve

sojan-official avatar Sep 14 '22 13:09 sojan-official

currently I am getting below error now the ssl corticate error is not coming

{"ok":true,"result":{"url":"https://blai.cloudgaming.my/app/accounts/1/inbox/31","has_custom_certificate":false,"pending_update_count":4,"last_error_date":1663571034,"last_error_message":"Wrong response from the webhook: 404 Not Found","max_connections":40,"ip_address":"52.187.37.182"}}

jayachandrab avatar Sep 19 '22 07:09 jayachandrab

@jayachandrab you don't need to manually set the url. if the you fixed the SSL error. just delete the inbox and recreate a new one. Chatwoot will automatically register the appropriate webhook with telegram

sojan-official avatar Sep 19 '22 19:09 sojan-official

if I add a new one again same issue, no messages are coming to inbox and goin from inbox. Without manually setting when I hit the below url

https://api.telegram.org/bot5691078884:AAGFaarH8Ku8Ap85ruA2v2N7NpKHd0_odf0/getWebhookInfo

got below response.

{"ok":true,"result":{"url":"","has_custom_certificate":false,"pending_update_count":8}}

jayachandrab avatar Sep 20 '22 01:09 jayachandrab

Closing this here as the problem is not related to Chatwoot but an issue with SSL Setup.

pranavrajs avatar Jan 12 '23 22:01 pranavrajs

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 11 '23 23:02 github-actions[bot]