How to Customize TradingView Alerts to Telegram

The TradingViewTo Bot supports the basic formatting for alert messages when sending TradingView alerts to Telegram.

You can use bold, italic, underlined, strikethrough, spoiler text, mention users in your alerts’ messages, and the TradingView to Anywhere Bot will render them accordingly.

You can use either Markdown style, MarkdownV2 style, or HTML style formatting.

Markdown Style
To use this mode, pass Markdown in the parse_mode field as follows: Format=Markdown at the end of your syntax message with the format shown below:

*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:
*Hello Everyone* _and welcome to_ [TradingView To Anywhere](https://tradingview.to/). Reach out to [Admin Tash](tg://user?id=2032069668) Format=Markdown

Please note that in this mode, there is no way to specify underline, strikethrough and entities must not be nested.

MarkDownV2 Style
To use this mode, pass MarkdownV2 in the parse_mode field as follows: Format=MarkdownV2 after your syntax message in the format shown below:

*bold \*text*
_italic \*text_
__underline__
~strikethrough~
||spoiler||
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold*
[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:
*Hello Everyone* _and welcome to_ [TradingView To Anywhere](https://tradingview.to/) __Reach__ out to [Admin Tash](tg://user?id=2032069668) ~for assistance~ || but you are good || Format=MarkdownV2

HTML Style
To use this mode, pass HTML in the parse_mode field as follows: Format=HTML after your message in the format shown below:

bold</b>, <strong>bold</strong>

<i>italic</i>, <em>italic</em>

<u>underline</u>, <ins>underline</ins>

<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>

<span class="tg-spoiler">spoiler</span>, <tg-spoiler>spoiler</tg-spoiler>

<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>

<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>

<pre><code class="language-python">pre-formatted fixed-width code block written in the Python programming language</code></pre>

Example:
<b>Hello Everyone</b> <i>and welcome to</i> <a href="https://tradingview.to/">TradingView To Anywhere</a> <u>Reach</u> out to <a href="tg://user?id=2032069668">Admin Tash</a> <s>for assistance</s> <tg-spoiler> but you are good</tg-spoiler> Format=HTML

For more on Telegram message formatting, see this link

That is all you need, and your alerts will reach your audience fully customized. :slight_smile: