Package com.cadiducho.telegrambotapi
Enum BotAPI.ChatAction
- java.lang.Object
-
- java.lang.Enum<BotAPI.ChatAction>
-
- com.cadiducho.telegrambotapi.BotAPI.ChatAction
-
- All Implemented Interfaces:
Serializable
,Comparable<BotAPI.ChatAction>
- Enclosing interface:
- BotAPI
public static enum BotAPI.ChatAction extends Enum<BotAPI.ChatAction>
Types of ChatAction. Idea by Rainu
-
-
Enum Constant Summary
Enum Constants Enum Constant Description find_location
record_audio
record_video
record_video_note
typing
upload_audio
upload_document
upload_photo
upload_video
upload_video_note
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BotAPI.ChatAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static BotAPI.ChatAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
typing
public static final BotAPI.ChatAction typing
-
upload_photo
public static final BotAPI.ChatAction upload_photo
-
record_video
public static final BotAPI.ChatAction record_video
-
upload_video
public static final BotAPI.ChatAction upload_video
-
record_audio
public static final BotAPI.ChatAction record_audio
-
upload_audio
public static final BotAPI.ChatAction upload_audio
-
upload_document
public static final BotAPI.ChatAction upload_document
-
find_location
public static final BotAPI.ChatAction find_location
-
record_video_note
public static final BotAPI.ChatAction record_video_note
-
upload_video_note
public static final BotAPI.ChatAction upload_video_note
-
-
Method Detail
-
values
public static BotAPI.ChatAction[] 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 (BotAPI.ChatAction c : BotAPI.ChatAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BotAPI.ChatAction 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
-
-