com.pengrad.telegrambot.request.KickChatMember 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;
/**
* stas
* 5/2/16.
*
* @deprecated from BOT API v5.3 you should use BanChatMember instead
*/
@Deprecated
public class KickChatMember extends BaseRequest {
public KickChatMember(Object chatId, long userId) {
super(BaseResponse.class);
add("chat_id", chatId).add("user_id", userId);
}
public KickChatMember untilDate(int untilDate) {
return add("until_date", untilDate);
}
public KickChatMember revokeMessages(boolean revokeMessages) {
return add("revoke_messages", revokeMessages);
}
}