com.pengrad.telegrambot.request.SetGameScore 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.response.BaseResponse;
import com.pengrad.telegrambot.response.SendResponse;
/**
* Stas Parshin
* 03 October 2016
*/
public class SetGameScore extends BaseRequest {
public SetGameScore(long userId, int score, Object chatId, int messageId) {
super(SendResponse.class);
add("user_id", userId).add("score", score).add("chat_id", chatId).add("message_id", messageId);
}
public SetGameScore(long userId, int score, String inlineMessageId) {
super(BaseResponse.class);
add("user_id", userId).add("score", score).add("inline_message_id", inlineMessageId);
}
public SetGameScore force(boolean force) {
return add("force", force);
}
public SetGameScore disableEditMessage(boolean disableEditMessage) {
return add("disable_edit_message", disableEditMessage);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy