Send an image link to telegram without display image url

Matin picture Matin · Sep 20, 2016 · Viewed 28.2k times · Source

I need send an image url to telegram without display image url and hidden url. I see a telegram bot and it's do it very well and send long message with image I'm attach this bot result image see it. Now how can do it in my custom bot? It's possible hidden url with MARKDOWN style or any way? I want hidden image url in my text but telegram display my image. see my sample attach image. thank you

enter image description here

Answer

N.Y picture N.Y · Sep 20, 2016

Most of them use the dot (or some things like this character) for link description and you thought there is no link.

You can type the following line and select custom markdown:

@bold [.](http://www.planwallpaper.com/static/images/i-should-buy-a-boat.jpg)

If you want to add text to your link, you need to create a bot and use this approach in the bot.

Edit:

For sending hyperlink with the bot api you can simply send html markup and using parse_mode. See telegram documents:

To use this mode, pass HTML in the parse_mode field when using sendMessage. The following tags are currently supported:

<b>bold</b>, <strong>bold</strong>
<i>italic</i>, <em>italic</em>
<a href="http://www.example.com/">inline URL</a>
<a href="tg://user?id=123456789">inline mention of a user</a>
<code>inline fixed-width code</code>
<pre>pre-formatted fixed-width code block</pre>

sample:

<a href="http://www.planwallpaper.com/static/images/i-should-buy-a-boat.jpg"></a>