% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/phone_number_checker.R
\name{check_username_on_telegram}
\alias{check_username_on_telegram}
\title{Check whether a single username belongs to a Telegram user}
\usage{
check_username_on_telegram(
  client,
  username,
  download_profile_photo = FALSE,
  photo_dir = NULL
)
}
\arguments{
\item{client}{An authenticated [TelegramClient] instance.}

\item{username}{Username, with or without a leading `@`.}

\item{download_profile_photo, photo_dir}{See [check_phone_on_telegram()].}
}
\value{
A named list with the user's public fields, or a list with
  an `error` field.
}
\description{
Looks up the username via `client$get_entity()`. Channels and group
chats produce an `error` row — this helper is for user accounts only.
}
\seealso{
[check_usernames_on_telegram()] for batch lookups.
}
