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

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

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

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

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

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

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

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

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