Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ctfreak
  3. Telegram Notifications

Telegram Notifications

Scheduled Pinned Locked Moved Ctfreak
7 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic was forked from Ctfreak - Task scheduler for distributed shell and sql script execution girish
This topic has been deleted. Only users with topic management privileges can see it.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #1

    How do notifications via Telegram work?

    I have them set up easily with a tgram:// URI, but whatever I put into the Notifiers screen for Telegram, I get a 404 when testing it.

    Conscious tech

    1 Reply Last reply
    0
    • jypelleJ Offline
      jypelleJ Offline
      jypelle
      wrote on last edited by jypelle
      #2

      Hi robi

      You have to create a telegram bot and retrieve its API Token and ChatID.

      3ef428f1-b2a1-47ba-9b96-814c5ae0e519-image.png

      robiR 1 Reply Last reply
      1
      • jypelleJ jypelle

        Hi robi

        You have to create a telegram bot and retrieve its API Token and ChatID.

        3ef428f1-b2a1-47ba-9b96-814c5ae0e519-image.png

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #3

        @jypelle I already have as noted in my question, the issue is the documentation doesn't show an example of how to use that information and input it into your form.

        It might be a nice update if you accept a tgram URI like Discord accepts a URL, so humans don't have to parse out which numbers are which. Also the incrementing input fields here doesn't make sense, especially starting from 0.

        Would you make it easier on us please?

        FYI for everyone else, this is what the tgram:// URI looks like:
        tgram://1234567890:AABjz5PVuBo0rRKQqRg9PjKRHYk14VTtzDU:123456789

        The API token field expects the first TWO fields:
        1234567890:AABjz5PVuBo0rRKQqRg9PjKRHYk14VTtzDU

        The Chat ID field expects the rest:
        123456789

        Conscious tech

        1 Reply Last reply
        0
        • jypelleJ Offline
          jypelleJ Offline
          jypelle
          wrote on last edited by
          #4

          Sorry @robi, I didn't know about the tgram URI syntax. I'll try to take it into account in a future release.

          robiR 1 Reply Last reply
          0
          • jypelleJ jypelle

            Sorry @robi, I didn't know about the tgram URI syntax. I'll try to take it into account in a future release.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #5

            @jypelle I just explained it.

            It may be AppRise specific:

            • Use AppRise URLs for notification to just about any service! Please read the notification services wiki here for important configuration notes.
            • discord:// (or https://discord.com/api/webhooks...)) only supports a maximum 2,000 characters of notification text, including the title.
            • tgram:// bots can't send messages to other bots, so you should specify chat ID of non-bot user.
            • tgram:// only supports very limited HTML and can fail when extra tags are sent, read more here (or use plaintext/markdown format)
            • gets://, posts://, puts://, deletes:// for direct API calls (or omit the "s" for non-SSL ie get://) more help here
            • Accepts the {{token}} placeholders listed below

            Conscious tech

            1 Reply Last reply
            0
            • jypelleJ Offline
              jypelleJ Offline
              jypelle
              wrote on last edited by
              #6

              @robi What a pity AppRise doesn't offer its library in Go 😥

              At the time I thought tgram URI syntax was a format proposed by Telegram.

              In retrospect, I'm a little annoyed at using the format specific to a library.

              robiR 1 Reply Last reply
              0
              • jypelleJ jypelle

                @robi What a pity AppRise doesn't offer its library in Go 😥

                At the time I thought tgram URI syntax was a format proposed by Telegram.

                In retrospect, I'm a little annoyed at using the format specific to a library.

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #7

                @jypelle I understand. This is what changedetection.io uses. Parse both?

                Maybe you can make it even better and come up with your own URI scheme that makes more sense.

                Conscious tech

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search