Skip to content

InternalLinkTypeUserPhoneNumber

Type · TDLib 1.8.67 · d1085f9c

The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field

InternalLinkTypeUserPhoneNumber(
  phone_number: string,
  draft_text: string,
  open_profile: Bool
) → InternalLinkType

phone_number

string

Phone number of the user

draft_text

string

Draft text for message to send in the chat

open_profile

Bool

True, if user's profile information screen must be opened; otherwise, the chat itself must be opened