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.

@FunctionalInterface public interface RedditMetadataPartitionSender
A functional interface for sending a partition of Reddit metadata.
  • Method Summary

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