Telegram Notification Example

15 views
Skip to first unread message

Eberhard Lisse

unread,
Apr 4, 2025, 3:20:50 AMApr 4
to DNSControl-discuss
Can someone post an example what to put into creds.json in order to use Telegram notification. 

I have the token for the bot and the chat/group id and can post to the group from the command line using telegram-owl, but the below does not work.

{
  "bind": {
    "TYPE": "BIND",
    "directory": "zones",
    "filenameformat": "%D.unsigned"
  },
  "notifications": {
    "shoutrrr_url": "discover://123456790:AAAAAAAAAAAAAAAAAAAAAAA@telegram/channels=-1001234567890"
  }
}

Can someone give me a similarly obfuscated example which works when unobfuscated, please?

Hamish Moffatt

unread,
Apr 4, 2025, 3:24:50 AMApr 4
to dnscontro...@googlegroups.com
On 4/4/25 18:20, Eberhard Lisse wrote:
> Can someone post an example what to put into creds.json in order to
> use Telegram notification.
>
> I have the token for the bot and the chat/group id and can post to the
> group from the command line using telegram-owl, but the below does not
> work.
>
> {
>   "bind": {
>     "TYPE": "BIND",
>     "directory": "zones",
>     "filenameformat": "%D.unsigned"
>   },
>   "notifications": {
>     "shoutrrr_url":
> "discover://123456790:AAAAAAAAAAAAAAAAAAAAAAA@telegram/channels=-1001234567890"
>   }
> }


Why discover:// ? According to the documentation it should be telegram://

https://containrrr.dev/shoutrrr/v0.8/services/telegram/


Hamish

ondohotola

unread,
Apr 4, 2025, 4:16:19 AMApr 4
to DNSControl-discuss
Makes no difference.

I can replace channels with chats and -1001234567890" with '@-1001234567890', no differenc.

Reply all
Reply to author
Forward
0 new messages