Hello, {$first_name} {$last_name}!";
} else {
$html = "
Hello, {$first_name} {$last_name}!
";
}
if (isset($tg_user['photo_url'])) {
$photo_url = htmlspecialchars($tg_user['photo_url']);
$html .= "
";
}
$html .= "Log out
";
} else {
$bot_username = BOT_USERNAME;
$html = <<Hello, anonymous!
HTML;
}
echo <<
Login Widget Example
{$html}
HTML;
?>