Class TdApi.InternalLinkTypeUserPhoneNumber

Enclosing class:
TdApi

public static class TdApi.InternalLinkTypeUserPhoneNumber extends TdApi.InternalLinkType
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.
  • Field Details

    • phoneNumber

      public String phoneNumber
      Phone number of the user.
    • draftText

      public String draftText
      Draft text for message to send in the chat.
    • openProfile

      public boolean openProfile
      True, if user's profile information screen must be opened; otherwise, the chat itself must be opened.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InternalLinkTypeUserPhoneNumber

      public 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.
    • InternalLinkTypeUserPhoneNumber

      public InternalLinkTypeUserPhoneNumber(String phoneNumber, String draftText, boolean openProfile)
      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.
      Parameters:
      phoneNumber - Phone number of the user.
      draftText - Draft text for message to send in the chat.
      openProfile - True, if user's profile information screen must be opened; otherwise, the chat itself must be opened.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR