Details

    • Paid Support
    • Resolution: Not A Bug
    • Minor
    • None
    • None
    • None

    Description

      hi, i will try to setup telegram bot with proxy but is not work.

      can you share how to get a telegram bot with a proxy running?.

       

      ./test_alert.php -c 8
      Observium CE 19.8.10000
      Test Alert Notification

      o Notifying [telegram] tes alert bot: {"recipient":"-352362127","bot_hash":"1016604075:AAFnxj3PJq7UGJ657qZCHCO1sLJToQbw5ZY","disable_notification":"false"} [FALSE]

      thanks,

      Attachments

        Activity

          [OBS-3184] telegram bot failed send with proxy

          Sorry for delay.
          Notification to Telegram send out over common API with an https request.

          If you try send notifications from closed network and want to use proxy, set this config variables:

          $config['http_proxy'] = "yourproxy:80";                // Proxy for HTTP/HTTPS requests (e.g. for geocoding)
          $config['proxy_user'] = '';                            // Proxy username (basic auth)
          $config['proxy_password'] = '';                        // Proxy password
          $config['proxy_fulluri'] = TRUE;                       // Proxy Full URI. Default TRUE, because mostly required by Squid.
          

          landy Mike Stupalov added a comment - Sorry for delay. Notification to Telegram send out over common API with an https request. If you try send notifications from closed network and want to use proxy, set this config variables: $config['http_proxy'] = "yourproxy:80"; // Proxy for HTTP/HTTPS requests (e.g. for geocoding) $config['proxy_user'] = ''; // Proxy username (basic auth) $config['proxy_password'] = ''; // Proxy password $config['proxy_fulluri'] = TRUE; // Proxy Full URI. Default TRUE, because mostly required by Squid.
          imam hadi imam hadi added a comment -

          i will already attach output command and my config.php

          imam hadi imam hadi added a comment - i will already attach output command and my config.php

          Please try same test but with degug (-d):

          ./test_alert.php -d -c 8
          

          attach output here or sent me by mail: mike@observium.org

          landy Mike Stupalov added a comment - Please try same test but with degug (-d): ./test_alert.php -d -c 8 attach output here or sent me by mail: mike@observium.org

          People

            landy Mike Stupalov
            imam hadi imam hadi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: