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

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

There is a newer version: 7.2.1
Show newest version
package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.model.reaction.ReactionType;
import com.pengrad.telegrambot.response.BaseResponse;

public class SetMessageReaction extends BaseRequest {

    public SetMessageReaction(Object chatId, int messageId, ReactionType... reactions) {
        super(BaseResponse.class);
        add("chat_id", chatId).add("message_id", messageId).add("reaction", reactions);
    }

    public SetMessageReaction(Object chatId, int messageId) {
        super(BaseResponse.class);
        add("chat_id", chatId).add("message_id", messageId);
    }

    public SetMessageReaction isBig(boolean isBig) {
        return add("is_big", isBig);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy