com.pengrad.telegrambot.model.request.InlineQueryResultPhoto 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
* 1/12/16.
*/
public class InlineQueryResultPhoto extends InlineQueryResult implements Serializable {
private final static long serialVersionUID = 0L;
private String photo_url;
private String thumbnail_url;
private Integer photo_width;
private Integer photo_height;
private String title;
private String description;
private String caption;
private String parse_mode;
public InlineQueryResultPhoto(String id, String photoUrl, String thumbnailUrl) {
super("photo", id);
this.photo_url = photoUrl;
this.thumbnail_url = thumbnailUrl;
}
public InlineQueryResultPhoto photoWidth(Integer photoWidth) {
this.photo_width = photoWidth;
return this;
}
public InlineQueryResultPhoto photoHeight(Integer photoHeight) {
this.photo_height = photoHeight;
return this;
}
public InlineQueryResultPhoto title(String title) {
this.title = title;
return this;
}
public InlineQueryResultPhoto description(String description) {
this.description = description;
return this;
}
public InlineQueryResultPhoto caption(String caption) {
this.caption = caption;
return this;
}
public InlineQueryResultPhoto parseMode(ParseMode parseMode) {
this.parse_mode = parseMode.name();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy