public enum TelegramMediaType extends Enum<TelegramMediaType>
TelegramConstants.TELEGRAM_MEDIA_TYPE
.Enum Constant and Description |
---|
AUDIO |
DOCUMENT |
PHOTO_JPG |
PHOTO_PNG |
TEXT |
VIDEO |
Modifier and Type | Method and Description |
---|---|
String |
getFileExtension() |
static TelegramMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TelegramMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TelegramMediaType TEXT
public static final TelegramMediaType PHOTO_PNG
public static final TelegramMediaType PHOTO_JPG
public static final TelegramMediaType AUDIO
public static final TelegramMediaType VIDEO
public static final TelegramMediaType DOCUMENT
public static TelegramMediaType[] values()
for (TelegramMediaType c : TelegramMediaType.values()) System.out.println(c);
public static TelegramMediaType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getFileExtension()
Apache Camel