Interface RedditPostSender

All Known Subinterfaces:
RedditPostSenderStrategy
All Known Implementing Classes:
RedditAnimationSender, RedditGalleryDataSender, RedditHostedVideoSender, RedditImageSenderManager, RedditPhotoSender, RedditRichVideoSenderManager, RedditUrlSender, RedditUrlSenderAdapter
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 RedditPostSender
A functional interface for sending Reddit posts to Telegram.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(Link post)
    Sends a Reddit post to Telegram.
  • Method Details

    • send

      void send(Link post) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Sends a Reddit post to Telegram.
      Parameters:
      post - the Reddit post to be sent
      Throws:
      IOException - if an I/O error occurs
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if a Telegram API error occurs