getMention

Get user mention link for different parse mode

if link_text parameter is empty, it will use fullName for link text

Arguments
Name Type Description Required
link_text string The link text, this text will linked the user no
parse_mode string Set your parse_mode to receive mention link related to it no

Output : string

Static or normal : normal

Examples :

$user->getMention();
$user->getMention(parse_mode: parseMode::HTML);