Class TdApi.InternalLinkTypeUserPhoneNumber

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InternalLinkType
org.drinkless.tdlib.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 the chat. 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.
    • 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 the chat. If draft text isn't empty, then put the draft text in the input field.
    • InternalLinkTypeUserPhoneNumber

      public InternalLinkTypeUserPhoneNumber(String phoneNumber, String draftText)
      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 the chat. 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.
  • 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.InternalLinkType
      Returns:
      this.CONSTRUCTOR