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;
}