
Check whether a single phone number is registered on Telegram
Source:R/phone_number_checker.R
check_phone_on_telegram.RdAdds the phone number to the authenticated account's contacts via `ImportContactsRequest`, captures any matching user, then removes the contact via `DeleteContactsRequest`. The contact addition is transient — Telegram users are not notified.
Arguments
- client
An authenticated [TelegramClient] instance.
- phone
Phone number string in international format (e.g. `"+15551234567"`).
- download_profile_photo
If `TRUE`, attempt to download the matched user's profile photo into `photo_dir` (default: `tempdir()`). Failures are reported as warnings.
- photo_dir
Directory to save downloaded profile photos; created if it doesn't exist. Ignored when `download_profile_photo` is `FALSE`.