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

com.pengrad.telegrambot.request.StopPoll Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
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);
    }

    public StopPoll businessConnectionId(String businessConnectionId) {
        return add("business_connection_id", businessConnectionId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy