com.pengrad.telegrambot.request.SendLocation 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 SendLocation extends AbstractSendRequest {
public SendLocation(Object chatId, float latitude, float longitude) {
super(chatId);
add("latitude", latitude);
add("longitude", longitude);
}
public SendLocation horizontalAccuracy(float horizontalAccuracy) {
return add("horizontal_accuracy", horizontalAccuracy);
}
public SendLocation livePeriod(int livePeriod) {
return add("live_period", livePeriod);
}
public SendLocation heading(int heading) {
return add("heading", heading);
}
public SendLocation proximityAlertRadius(int proximityAlertRadius) {
return add("proximity_alert_radius", proximityAlertRadius);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy