com.pengrad.telegrambot.model.request.InputContactMessageContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model.request;
import java.io.Serializable;
/**
* Stas Parshin
* 06 May 2016
*/
public class InputContactMessageContent extends InputMessageContent implements Serializable {
private final static long serialVersionUID = 0L;
private String phone_number;
private String first_name;
private String last_name;
private String vcard;
public InputContactMessageContent(String phoneNumber, String firstName) {
this.phone_number = phoneNumber;
this.first_name = firstName;
}
public InputContactMessageContent lastName(String lastName) {
this.last_name = lastName;
return this;
}
public InputContactMessageContent vcard(String vcard) {
this.vcard = vcard;
return this;
}
}