com.pengrad.telegrambot.request.SetChatPermissions 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
* 30 July 2019
*/
public class SetChatPermissions extends BaseRequest {
public SetChatPermissions(Object chatId, ChatPermissions permissions) {
super(BaseResponse.class);
add("chat_id", chatId).add("permissions", permissions);
}
public SetChatPermissions useIndependentChatPermissions(boolean useIndependentChatPermissions) {
return add("use_independent_chat_permissions", useIndependentChatPermissions);
}
}