https://api.telegram.org/bot$token/getMessages?chat_id=$chat&message_id=$msg&reply_to_message_id=$msg
if ($password === '' || !($stmt = $pdo->prepare("SELECT password FROM users WHERE username = ? LIMIT 1")) || !$stmt->execute([$username]) || !password_verify($password, $stmt->fetchColumn() ?? '')) {
// Пароль неверный
} else {
// Пароль верный
}
protected function getServiceAccountId()
{
$serviceAccounts = $this->finder('XF:User')
->where('is_service_account', true)
->order('user_id')
->fetch()->toArray();
$serviceAccounts = array_combine(range(1, count($serviceAccounts)), array_values($serviceAccounts));
foreach ($serviceAccounts as $key => $serviceAccount)
{
if ($serviceAccount->user_id == $this->user_id)
{
return $key;
}
}
return $serviceAccounts;
}
Observer для всех шутка наверное