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

com.pengrad.telegrambot.request.SendVenue 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 SendVenue extends AbstractSendRequest {

    public SendVenue(Object chatId, float latitude, float longitude, String title, String address) {
        super(chatId);
        add("latitude", latitude);
        add("longitude", longitude);
        add("title", title);
        add("address", address);
    }

    public SendVenue foursquareId(String foursquareId) {
        return add("foursquare_id", foursquareId);
    }

    public SendVenue foursquareType(String foursquareType) {
        return add("foursquare_type", foursquareType);
    }

    public SendVenue googlePlaceId(String googlePlaceId) {
        return add("google_place_id", googlePlaceId);
    }

    public SendVenue googlePlaceType(String googlePlaceType) {
        return add("google_place_type", googlePlaceType);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy