Interface InternalLinkTypeUserPhoneNumber

The link is a link to a user by their phone number. Call searchUserByPhoneNumber with the given phone number to process the link. If the user is found, then call createPrivateChat and open the user's profile information screen or the chat itself. If the 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;
    unpaid_messages_token: string;
}

Properties

@type: "internalLinkTypeUserPhoneNumber"
draft_text: string

Draft text for the message to send in the chat.

open_profile?: boolean

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

phone_number: string

Phone number of the user.

unpaid_messages_token: string

Token that allows the current user to send unpaid messages to the user; may be empty if none. If the token isn't empty and the user is found, then call applyUnpaidMessagesToken with the user and the token.