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