com.pengrad.telegrambot.model.request.InlineQueryResultCachedVideo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model.request;
import java.io.Serializable;
/**
* Stas Parshin
* 06 May 2016
*/
public class InlineQueryResultCachedVideo extends InlineQueryResult implements Serializable {
private final static long serialVersionUID = 0L;
private String video_file_id;
private String title;
private String description;
private String caption;
private String parse_mode;
public InlineQueryResultCachedVideo(String id, String fileId, String title) {
super("video", id);
this.video_file_id = fileId;
this.title = title;
}
public InlineQueryResultCachedVideo description(String description) {
this.description = description;
return this;
}
public InlineQueryResultCachedVideo caption(String caption) {
this.caption = caption;
return this;
}
public InlineQueryResultCachedVideo parseMode(ParseMode parseMode) {
this.parse_mode = parseMode.name();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy