Package com.cadiducho.telegrambotapi
Enum Message.Type
- java.lang.Object
-
- java.lang.Enum<Message.Type>
-
- com.cadiducho.telegrambotapi.Message.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Message.Type>
- Enclosing class:
- Message
public static enum Message.Type extends Enum<Message.Type>
Defines the different types of Messages that can be received.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Message.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Message.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final Message.Type TEXT
-
AUDIO
public static final Message.Type AUDIO
-
DOCUMENT
public static final Message.Type DOCUMENT
-
ANIMATION
public static final Message.Type ANIMATION
-
GAME
public static final Message.Type GAME
-
PHOTO
public static final Message.Type PHOTO
-
STICKER
public static final Message.Type STICKER
-
VIDEO
public static final Message.Type VIDEO
-
VOICE
public static final Message.Type VOICE
-
VIDEO_NOTE
public static final Message.Type VIDEO_NOTE
-
CONTACT
public static final Message.Type CONTACT
-
LOCATION
public static final Message.Type LOCATION
-
VENUE
public static final Message.Type VENUE
-
NEW_CHAT_MEMBERS
public static final Message.Type NEW_CHAT_MEMBERS
-
LEFT_CHAT_MEMBER
public static final Message.Type LEFT_CHAT_MEMBER
-
NEW_CHAT_TITLE
public static final Message.Type NEW_CHAT_TITLE
-
NEW_CHAT_PHOTO
public static final Message.Type NEW_CHAT_PHOTO
-
DELETE_CHAT_PHOTO
public static final Message.Type DELETE_CHAT_PHOTO
-
GROUP_CHAT_CREATED
public static final Message.Type GROUP_CHAT_CREATED
-
SUPERGROUP_CHAT_CREATED
public static final Message.Type SUPERGROUP_CHAT_CREATED
-
CHANNEL_CHAT_CREATED
public static final Message.Type CHANNEL_CHAT_CREATED
-
MIGRATE_TO_CHAT_ID
public static final Message.Type MIGRATE_TO_CHAT_ID
-
MIGRATE_FROM_CHAT_ID
public static final Message.Type MIGRATE_FROM_CHAT_ID
-
PINNED_MESSAGE
public static final Message.Type PINNED_MESSAGE
-
INVOICE
public static final Message.Type INVOICE
-
SUCCESSFUL_PAYMENT
public static final Message.Type SUCCESSFUL_PAYMENT
-
CONNECTED_WEBSITE
public static final Message.Type CONNECTED_WEBSITE
-
UNKNOWN
public static final Message.Type UNKNOWN
-
-
Method Detail
-
values
public static Message.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Message.Type c : Message.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Message.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-