Dude Telegram notification example

Hi,

I read several times this topic, and checked my config several times too, but I can’t find my fail. I have internet, the bot, the chat_id, the group in Tg, … but I have no response in Telegram.

In this picture, it is my configuration in The Dude, I have The Dude on a VM with free license, and I did the notification config in TheDude and in the devices:

Picture:
https://www.dropbox.com/s/9qnwxk703s8u2vr/Captura.JPG?dl=0


/tool fetch mode=https url="https://api.telegram.org/bottokenHTTPAPIreceived/sendMessage\?chat_id=-idreceived&text=TEST" keep-result=no

In the other hand, if I try from the terminal of the router I receive the message:

/tool fetch mode=https url="https://api.telegram.org/bottokenHTTPAPIreceived/sendMessage?chat_id=-idreceived&text=TEST" keep-result=no

status: failed
failure: closing connection: <404 Not Found> 149.154.167.220:443 (4)

Please , can you help me.
Thanks

/tool fetch url="https://api.telegram.org/bot123456789:ABCD1efghiL2mnouPqRsT3uvZAB_4CdEFgh/sendMessage?chat_id=-123456789&text=asdasdasd&parse_mode=HTML" keep-result=no

check your link whith this…

in your first link and screenshoot there is an error here: sendMessage?chat

I’m trying to get this going also … I have a string that when i paste it into the browser it works a charm, but when i try with the below string I get a 404 - any ideas folks, thanks !

/tool fetch url=“https://api.telegram.org/bot##57155671:##HkRt_RhMgEpx2dyggvJx4h5tyPAgjjTCo/sendMessage?chat_id=##6755190&text=meh&parse_mode=HTML” keep-result=no

failure: closing connection: <404 Not Found> 149.154.167.220:443 (4)

The API indicates that there are several parsing methods: HTML, markdown and Markdownv2: https://core.telegram.org/bots/api#sendmessage

I recommend you to use Markdown classic style:

*bold text*
_italic text_
[inline URL](http://www.example.com/)
[inline mention of a user](tg://user?id=123456789)
`inline fixed-width code`

pre-formatted fixed-width code block

```python
pre-formatted fixed-width code block written in the Python programming language

Example:

```text
/tool fetch url="https://api.telegram.org/bot  < BOT-TOKEN >  /sendMessage?chat_id=  < CHAT-ID >  &text=🔴%20%20[Device.Name]%20%20🔴%0A*IP:*%20[Device.FirstAddress]%0A*MAC:*%20[Device.MacAddressesCommaList]%0A*STATUS:*%20[Device.Status]%0A&parse_mode=markdown" keep-result=no

:red_circle: > You can use supported emojis
%20 > Indicates a empty space.
%0A > Indicates a line break.

ASCII Encoding Reference: https://www.w3schools.com/tags/ref_urlencode.ASP

There should be no spaces in the URL, nor should there be line breaks, there should be only one line. Use the test button in the notification to verify that it works correctly.

I realise this is a well established thread but I have read it a couple of times and can not see my issue highlighted. The Telegram message works well but I can not get the variables populated, I am, on 6.49.7, I am trying via Dude and in the terminal - they have the same results, it will send the message but variables will not populate in the message. can anyone point me in the right direction please?

Hi, gettng issue with telegram bot, getting error on it.

Help me how to solve it

Do not hijack 3yesars old topic.

Closing it as Dude is abandonware now.