com.pengrad.telegrambot.model.request.InputPaidMediaPhoto 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.model.request;
import com.pengrad.telegrambot.request.ContentTypes;
import java.io.File;
import java.io.Serializable;
public class InputPaidMediaPhoto extends InputPaidMedia implements Serializable {
private final static long serialVersionUID = 1L;
public InputPaidMediaPhoto(String media) {
super("photo", media);
}
public InputPaidMediaPhoto(File media) {
super("photo", media);
}
public InputPaidMediaPhoto(byte[] media) {
super("photo", media);
}
@Override
public String getDefaultFileName() {
return ContentTypes.PHOTO_FILE_NAME;
}
@Override
public String getDefaultContentType() {
return ContentTypes.PHOTO_MIME_TYPE;
}
}