cannot receive message from telegram or trigger workflow

43 views
Skip to first unread message

abdo bkp

unread,
Oct 8, 2024, 5:18:05 AM10/8/24
to rapidpro-dev
I can send message to a contact in telegram bot 

but when I send message from telegam bot not received on rapidpro 

and no error message 

 Incoming Text Messages empty 

I can access my rapidpro server online https 

rapid-tel.png
rapid-tel2.png

abdo bkp

unread,
Oct 10, 2024, 6:33:12 AM10/10/24
to rapidpro-dev
I found the solution 
after config nginx as : 
and add telegram channel to rapid pro 

you have to open your web browser set this link 


note: to get channel id from rapidpro click the channel and get the id from url 


you should get 


{ "ok": true, "result": true, "description": "Webhook was set" }

note : 

for nginx 

 location /c/tg/ {
       access_log /var/log/nginx/telegram_access.log;
      proxy_set_header Host $http_host;  # Pass the original Host header
     proxy_pass http://127.0.0.1:8080;   # Redirect to local server
      proxy_set_header X-Real-IP $remote_addr; # Pass the real client IP
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Pass the forwarded IP
     proxy_set_header X-Forwarded-Proto $scheme; # Pass the original request scheme
     break;
    }

Reply all
Reply to author
Forward
0 new messages