package org.telegram.telegrambots.meta.api.methods;

/**
 * @author Ruben Bermudez
 * @version 1.0
 * @brief Types of actions for SendChatAction method.
 * @date 20 of June of 2016
 */
public enum ActionType {
    TYPING("typing"),
    RECORDVIDEO("record_video"),
    RECORDAUDIO("record_audio"),
    UPLOADPHOTO("upload_photo"),
    UPLOADVIDEO("upload_video"),
    UPLOADAUDIO("upload_audio"),
    UPLOADDOCUMENT("upload_document"),
    FINDLOCATION("find_location");

    private String text;

    ActionType(String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return text;
    }

    public static ActionType get(String text) {
        if (text == null) {
            return null;
        }
        switch (text) {
            case "typing":
                return TYPING;
            case "record_video":
                return RECORDVIDEO;
            case "record_audio":
                return RECORDAUDIO;
            case "upload_photo":
                return UPLOADPHOTO;
            case "upload_video":
                return UPLOADVIDEO;
            case "upload_audio":
                return UPLOADAUDIO;
            case "upload_document":
                return UPLOADDOCUMENT;
            case "find_location":
                return FINDLOCATION;
            default:
                return null;
        }
    }
}

@@ -254,24 +254,66 @@
 rd_video%22),%0A
+    RECORDVIDEONOTE(%22record_video_note%22),%0A
     RECORDAU
@@ -395,24 +395,66 @@
 ad_video%22),%0A
+    UPLOADVIDEONOTE(%22upload_video_note%22),%0A
     UPLOADAU
@@ -965,32 +965,110 @@
 rn RECORDVIDEO;%0A
+            case %22record_video_note%22:%0A                return RECORDVIDEONOTE;%0A
             case
@@ -1250,32 +1250,110 @@
 rn UPLOADVIDEO;%0A
+            case %22upload_video_note%22:%0A                return UPLOADVIDEONOTE;%0A
             case

Add record/upload video note to ActionType