com.pengrad.telegrambot.request.StopMessageLiveLocation 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;
import com.pengrad.telegrambot.model.request.InlineKeyboardMarkup;
import com.pengrad.telegrambot.response.BaseResponse;
import com.pengrad.telegrambot.response.SendResponse;
/**
* Stas Parshin
* 12 October 2017
*/
public class StopMessageLiveLocation extends BaseRequest {
public StopMessageLiveLocation(Object chatId, int messageId) {
super(SendResponse.class);
add("chat_id", chatId).add("message_id", messageId);
}
public StopMessageLiveLocation(String inlineMessageId) {
super(BaseResponse.class);
add("inline_message_id", inlineMessageId);
}
public StopMessageLiveLocation replyMarkup(InlineKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy