org.telegram.telegrambots.api.methods.send.SendLocation Maven / Gradle / Ivy
package org.telegram.telegrambots.api.methods.send;
import javax.ws.rs.Path;
import org.telegram.telegrambots.api.objects.replykeyboard.ReplyKeyboard;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
* @author Lev Nadeinsky
* @author Ruben Bermudez
* @brief Use this method to send point on the map. On success, the sent Message is returned.
* @date 2016-11-21
*/
@Data
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper=true)
@Path("sendlocation")
public class SendLocation extends ApiMethod {
String chatId; ///< Unique identifier for the chat to send the message to (Or username for channels)
Float latitude; ///< Latitude of location
Float longitude; ///< Longitude of location
/**
* Optional. Sends the message silently. iOS users will not receive a notification, Android
* users will receive a notification with no sound. Other apps coming soon
*/
@JsonProperty("disable_notification") Boolean disableNotification;
@JsonProperty("reply_to_message_id") Integer replyToMessageId; ///< Optional. If the message is a reply, ID of the original message
@JsonProperty("reply_markup") ReplyKeyboard replyMarkup; ///< Optional. JSON-serialized object for a custom reply keyboard
}