In the class "User" in the file class.user.php created a function
function getTelegramID() {
foreach ($this->getDynamicData() as $e)
if ($a = $e->getAnswer('tlg_id'))
return $a;
}
In the file ticket-view.inc.php added:
<tr>
<th>Telegram ID:</th>
<td><?php echo $user->getTelegramID();?></td>
</tr>
The value appeared when viewing the ticket.
The question is how to get this value, for example, in the plugin code?