java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.forwarder.LinkForwarder
All Implemented Interfaces:
Forwarder

@Service public class LinkForwarder extends Object implements Forwarder
Forwards links from Reddit to Telegram.
  • Constructor Details

    • LinkForwarder

      public LinkForwarder()
  • Method Details

    • forward

      public void forward(Link link) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Description copied from interface: Forwarder
      Forwards the specified link.
      Specified by:
      forward in interface Forwarder
      Parameters:
      link - the link to forward
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if a Telegram API error occurs during forwarding