com.pengrad.telegrambot.request.SetChatPhoto 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;
import java.io.File;
/**
* Stas Parshin
* 01 July 2017
*/
public class SetChatPhoto extends BaseRequest {
public SetChatPhoto(Object chatId, byte[] photo) {
super(BaseResponse.class);
add("chat_id", chatId).add("photo", photo);
}
public SetChatPhoto(Object chatId, File photo) {
super(BaseResponse.class);
add("chat_id", chatId).add("photo", photo);
}
@Override
public boolean isMultipart() {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy