Class RedditPhotoSender

java.lang.Object
io.github.yvasyliev.forwarder.telegram.reddit.service.sender.RedditPhotoSender
All Implemented Interfaces:
RedditPostSender

public class RedditPhotoSender extends Object implements RedditPostSender
Sender for Reddit photo posts.
  • Constructor Details

  • Method Details

    • send

      public void send(Link post) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Description copied from interface: RedditPostSender
      Sends a Reddit post to Telegram.
      Specified by:
      send in interface RedditPostSender
      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