Class AbstractAnimationForwarder

java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.forwarder.AbstractAnimationForwarder
All Implemented Interfaces:
Forwarder
Direct Known Subclasses:
ImageAnimationForwarder, VideoAnimationForwarder

public abstract class AbstractAnimationForwarder extends Object implements Forwarder
Abstract class for forwarding animations.
  • Constructor Details

    • AbstractAnimationForwarder

      public AbstractAnimationForwarder()
  • Method Details

    • forward

      public void forward(Link link) throws IOException, 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:
      IOException - if an I/O error occurs during forwarding
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if a Telegram API error occurs during forwarding
    • getUrl

      protected abstract URL getUrl(Link link)