Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is it possible to send to Telegram from the command line?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 198 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dimskraftD
      dimskraft
      last edited by

      pfSense can send some notifications to a Telegram bot. Is it possible to re-use this functionality from command line?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You can trigger a notification using php like:

        require_once('notices.inc');
        file_notice(1,"Test");
        

        That will use all the configured notification methods including Telegram if it's set.

        Steve

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.