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

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