Telegram User Bot icon

Telegram User Bot

Send messages and manage contacts via Telegram User Bot (MTProto)

Import Contact

AI-generated

Summary

Import a contact into your Telegram user account by specifying their phone number, first name, and optionally last name, and retrieve their Telegram user ID and related information if successfully imported.

Inputs

  • Phone Number (required) — Phone number with country code (e.g., +989123456789)
  • First Name (required) — First name for the contact
  • Last Name — Last name for the contact (optional)

Output shape

a single record

Returns a JSON object indicating success status, imported Telegram user details including userId, accessHash, phone, firstName, lastName, and username if available. If the user is not found or already a contact, returns success: false with a reason and retry count if applicable.

Discussion