Class RedditMediaGroupMetadataSender

java.lang.Object
io.github.yvasyliev.forwarder.telegram.reddit.service.sender.metadata.partition.RedditMediaGroupMetadataSender
All Implemented Interfaces:
RedditMetadataPartitionSender

public class RedditMediaGroupMetadataSender extends Object implements RedditMetadataPartitionSender
Sender for Reddit metadata partitions that should be sent as media groups.
  • Constructor Details

  • Method Details

    • send

      public void send(List<Link.Metadata> metadataPartition, boolean hasSpoiler, String caption) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Description copied from interface: RedditMetadataPartitionSender
      Sends a partition of Reddit metadata.
      Specified by:
      send in interface RedditMetadataPartitionSender
      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