com.pengrad.telegrambot.request.RestrictChatMember 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.ChatPermissions;
import com.pengrad.telegrambot.response.BaseResponse;
/**
* Stas Parshin
* 01 July 2017
*/
public class RestrictChatMember extends BaseRequest {
public RestrictChatMember(Object chatId, long userId, ChatPermissions permissions) {
super(BaseResponse.class);
add("chat_id", chatId).add("user_id", userId).add("permissions", permissions);
}
public RestrictChatMember untilDate(int untilDate) {
return add("until_date", untilDate);
}
public RestrictChatMember useIndependentChatPermissions(boolean useIndependentChatPermissions) {
return add("use_independent_chat_permissions", useIndependentChatPermissions);
}
}