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.

@FunctionalInterface public interface RedditMediaMetadataSender
A functional interface for sending Reddit media metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(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 send
      hasSpoiler - indicates if the media has a spoiler
      Throws:
      IOException - if an I/O error occurs
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if a Telegram API error occurs