com.pengrad.telegrambot.request.StopPoll 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.Keyboard;
import com.pengrad.telegrambot.response.PollResponse;
/**
* Stas Parshin
* 17 April 2019
*/
public class StopPoll extends BaseRequest {
public StopPoll(Object chatId, int messageId) {
super(PollResponse.class);
add("chat_id", chatId).add("message_id", messageId);
}
public StopPoll replyMarkup(Keyboard replyMarkup) {
return add("reply_markup", replyMarkup);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy