Interface InternalLinkTypeUserPhoneNumber

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. Subtype of InternalLinkType.

interface InternalLinkTypeUserPhoneNumber {
    @type: "internalLinkTypeUserPhoneNumber";
    draft_text: string;
    open_profile?: boolean;
    phone_number: string;
}

Properties

@type: "internalLinkTypeUserPhoneNumber"
draft_text: string

Draft text for message to send in the chat.

open_profile?: boolean

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

phone_number: string

Phone number of the user.