com.pengrad.telegrambot.request.SetMyDefaultAdministratorRights 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.ChatAdministratorRights;
import com.pengrad.telegrambot.response.BaseResponse;
/**
* Mirco Ianese
* 20 Apr 2022
*/
public class SetMyDefaultAdministratorRights extends BaseRequest {
public SetMyDefaultAdministratorRights() {
super(BaseResponse.class);
}
public SetMyDefaultAdministratorRights rights(ChatAdministratorRights chatAdministratorRights) {
return add("rights", chatAdministratorRights);
}
public SetMyDefaultAdministratorRights forChannels(boolean forChannels) {
return add("for_channels", forChannels);
}
}