witnessmenow/Universal-Arduino-Telegram-Bot

"highlighted" or link messages to telegram

jameszah opened this issue · 1 comments

Hi, easy question for someone who knows the answer:

I'm sending "links" to telegram, that the human can click on and download some video from an esp32, or send the video to telegram to donwload from telegram.

The first link below the "link" is nicely highlighted, and a click will get the video.

The second link is the command to the esp32 to send the video to telegram. I can copy/paste the link and it works, but I cannot get the entire think showing as "blue" or a link.

Any ideas?

image

  String stat = "Video http://" + WiFi.localIP().toString() + ":8080/c?dwn=" + String(fname) + "\n\n" + "/send=" + String(fname);

  bot.sendMessage(chat_id, stat, "");

Markdown and MarkdownV2 do not seem to help - it works for bold, etc., and for http links, but not for these links you are sending back to telegram.

It looks like it interprets the text within the link field, and it likes the "/send" syntax, but a colon after it will not be included ("/send:5") , and a slash after it will destroy the link ("/send/5").

But "/send5" seems to be fine - you just cannot put any punctuation -- so the above example with a filename is not got a solution.

image
image

image
image

image