pro.zackpollard.telegrambot.api.chat.message.send.SendableAudioMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.chat.message.send;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import pro.zackpollard.telegrambot.api.chat.message.Message;
import pro.zackpollard.telegrambot.api.chat.message.ReplyMarkup;
/**
* @author Zack Pollard
*/
@RequiredArgsConstructor
@Builder
public class SendableAudioMessage implements SendableMessage, ReplyingOptions {
@NonNull
@Getter
private final InputFile audio;
@Getter
private final int duration;
@Getter
private final String performer;
@Getter
private final String title;
@Getter
private final Message replyTo;
@Getter
private final ReplyMarkup replyMarkup;
@Override
public MessageType getType() {
return MessageType.AUDIO;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy