Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escaping underline in telegram api when parse_mode = Markdown

How can I send this text correctly:

$parameters['text'] = 'you must see [example](example.com) or contact with @exmaple_com';

if I don't use "Markdown", telegram don't show the above link if I use "Markdown", telegram can't handle underline.

like image 563
mitra razmara Avatar asked Jul 19 '17 17:07

mitra razmara


1 Answers

you should use backslash scapes to do so:

$parameters['text'] = 'you must see [example](example.com) or contact with @exmaple\\_com';
like image 150
tashakori Avatar answered Nov 01 '22 22:11

tashakori