Interface RedditMediaMetadataSender
- All Known Implementing Classes:
RedditAnimationMetadataSender, RedditPhotoMetadataSender
- 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 Reddit media metadata.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend(Link.Metadata metadata, boolean hasSpoiler) Sends the given Reddit media metadata.
-
Method Details
-
send
void send(Link.Metadata metadata, boolean hasSpoiler) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException Sends the given Reddit media metadata.- Parameters:
metadata- the Reddit media metadata to sendhasSpoiler- indicates if the media has a spoiler- Throws:
IOException- if an I/O error occursorg.telegram.telegrambots.meta.exceptions.TelegramApiException- if a Telegram API error occurs
-