com.pengrad.telegrambot.request.BanChatMember 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;
public class BanChatMember extends BaseRequest {
public BanChatMember(Object chatId, long userId) {
super(BaseResponse.class);
add("chat_id", chatId).add("user_id", userId);
}
public BanChatMember untilDate(int untilDate) {
return add("until_date", untilDate);
}
public BanChatMember revokeMessages(boolean revokeMessages) {
return add("revoke_messages", revokeMessages);
}
}