org.telegram.telegrambots.meta.api.objects.media.InputMediaPhoto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegrambots-meta Show documentation
Show all versions of telegrambots-meta Show documentation
Easy to use library to create Telegram Bots
package org.telegram.telegrambots.meta.api.objects.media;
import org.telegram.telegrambots.meta.exceptions.TelegramApiValidationException;
/**
* @author Ruben Bermudez
* @version 3.5
*
* Represents a photo.
*/
@SuppressWarnings("unused")
public class InputMediaPhoto extends InputMedia {
private static final String TYPE = "photo";
public InputMediaPhoto() {
super();
}
public InputMediaPhoto(String media, String caption) {
super(media, caption);
}
@Override
public String getType() {
return TYPE;
}
@Override
public void validate() throws TelegramApiValidationException {
super.validate();
}
@Override
public String toString() {
return "InputMediaPhoto{} " + super.toString();
}
}