package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.impl.TelegramApi;

/**
 * stas
 * 5/1/16.
 */
public class SendVideoRequest extends AbstractMultipartRequest<SendVideoRequest> {

    public SendVideoRequest(TelegramApi api, Object chatId, Object video, boolean isMultipart) {
        super(api, chatId, isMultipart);
        add("video", video);
    }

    public SendVideoRequest caption(String caption) {
        return add("caption", caption);
    }

    public SendVideoRequest duration(int duration) {
        return add("duration", duration);
    }

    @Override
    public String getMethod() {
        return "sendVideo";
    }

    @Override
    public String getFileName() {
        return ContentTypes.VIDEO_FILE_NAME;
    }

    @Override
    public String getContentType() {
        return ContentTypes.VIDEO_MIME_TYPE;
    }
}

@@ -402,26 +402,25 @@
 est 
-cap
+dura
 tion(
-String cap
+int dura
 tion
@@ -447,21 +447,23 @@
 dd(%22
-cap
+dura
 tion%22, 
-cap
+dura
 tion
@@ -500,33 +500,218 @@
 Request 
-duration(int dura
+width(int width) %7B%0A        return add(%22width%22, width);%0A    %7D%0A%0A    public SendVideoRequest height(int height) %7B%0A        return add(%22height%22, height);%0A    %7D%0A%0A    public SendVideoRequest caption(String cap
 tion) %7B%0A
@@ -726,39 +726,37 @@
 return add(%22
-dura
+cap
 tion%22, 
-dura
+cap
 tion);%0A    %7D

Update SendVideoRequest