Class SendContact

java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendContact

public class SendContact extends Send
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • SendContact

      public SendContact()
  • Method Details

    • getPhoneNumber

      public @NonNull String getPhoneNumber()
      Returns:
      Contact's phone number.
    • setPhoneNumber

      public void setPhoneNumber(@NonNull String phoneNumber)
      Parameters:
      phoneNumber - Contact's phone number.
    • getFirstName

      public @NonNull String getFirstName()
      Returns:
      Contact's first name.
    • setFirstName

      public void setFirstName(@NonNull String firstName)
      Parameters:
      firstName - Contact's first name.
    • getLastName

      public @Nullable String getLastName()
      Returns:
      Contact's last name.
    • setLastName

      public void setLastName(@Nullable String lastName)
      Parameters:
      lastName - Contact's last name.
    • getVcard

      public @Nullable String getVcard()
      Returns:
      Additional data about the contact in the form of a vCard, 0-2048 bytes.
    • setVcard

      public void setVcard(@Nullable String vcard)
      Parameters:
      vcard - Additional data about the contact in the form of a vCard, 0-2048 bytes.