com.pengrad.telegrambot.request.SendContact 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.request;
/**
* stas
* 5/1/16.
*/
public class SendContact extends AbstractSendRequest {
public SendContact(Object chatId, String phoneNumber, String firstName) {
super(chatId);
add("phone_number", phoneNumber);
add("first_name", firstName);
}
public SendContact lastName(String lastName) {
return add("last_name", lastName);
}
public SendContact vcard(String vcard) {
return add("vcard", vcard);
}
}