com.pengrad.telegrambot.model.request.InlineQueryResultCachedPhoto 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 InlineQueryResultCachedPhoto extends InlineQueryResult implements Serializable {
private final static long serialVersionUID = 0L;
private String photo_file_id;
private String title;
private String description;
private String caption;
private String parse_mode;
public InlineQueryResultCachedPhoto(String id, String fileId) {
super("photo", id);
this.photo_file_id = fileId;
}
public InlineQueryResultCachedPhoto title(String title) {
this.title = title;
return this;
}
public InlineQueryResultCachedPhoto description(String description) {
this.description = description;
return this;
}
public InlineQueryResultCachedPhoto caption(String caption) {
this.caption = caption;
return this;
}
public InlineQueryResultCachedPhoto parseMode(ParseMode parseMode) {
this.parse_mode = parseMode.name();
return this;
}
}