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

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

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

import java.io.Serializable;

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

    private String audio_file_id;

    private String caption;
    private String parse_mode;

    public InlineQueryResultCachedAudio(String id, String fileId) {
        super("audio", id);
        this.audio_file_id = fileId;
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy