Interface RedditMetadataPartitionSender
- All Known Implementing Classes:
RedditMediaGroupMetadataSender, RedditMediaMetadataSenderManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for sending a partition of Reddit metadata.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend(List<Link.Metadata> metadataPartition, boolean hasSpoiler, String caption) Sends a partition of Reddit metadata.
-
Method Details
-
send
void send(List<Link.Metadata> metadataPartition, boolean hasSpoiler, String caption) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException Sends a partition of Reddit metadata.- Parameters:
metadataPartition- the list of Reddit metadata to sendhasSpoiler- indicates if the content has a spoilercaption- the caption to accompany the sent content- Throws:
IOException- if an I/O error occursorg.telegram.telegrambots.meta.exceptions.TelegramApiException- if a Telegram API error occurs
-