All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pengrad.telegrambot.request.SendContact Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy