All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pengrad.telegrambot.model.request.InlineQueryResultCachedMpeg4Gif Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
package com.pengrad.telegrambot.model.request;

import java.io.Serializable;

/**
 * Stas Parshin
 * 06 May 2016
 */
public class InlineQueryResultCachedMpeg4Gif extends InlineQueryResult implements Serializable {
    private final static long serialVersionUID = 0L;

    private String mpeg4_file_id;

    private String title;
    private String caption;
    private String parse_mode;

    public InlineQueryResultCachedMpeg4Gif(String id, String fileId) {
        super("mpeg4_gif", id);
        this.mpeg4_file_id = fileId;
    }

    public InlineQueryResultCachedMpeg4Gif title(String title) {
        this.title = title;
        return this;
    }

    public InlineQueryResultCachedMpeg4Gif caption(String caption) {
        this.caption = caption;
        return this;
    }

    public InlineQueryResultCachedMpeg4Gif parseMode(ParseMode parseMode) {
        this.parse_mode = parseMode.name();
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy