com.pengrad.telegrambot.request.SetMessageReaction 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.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