Interface InternalLinkTypeUserToken

The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link. If the user is found, then call createPrivateChat and open the chat. Subtype of InternalLinkType.

interface InternalLinkTypeUserToken {
    @type: "internalLinkTypeUserToken";
    token: string;
    unpaid_messages_token: string;
}

Properties

@type: "internalLinkTypeUserToken"
token: string

The token.

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.