All Known Implementing Classes:
AbstractAnimationForwarder, ImageAnimationForwarder, LinkForwarder, MediaGroupForwarder, PhotoForwarder, VideoAnimationForwarder, VideoForwarder
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 Forwarder
Functional interface for forwarding links. Implementations should define how to forward a given link.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    forward(Link link)
    Forwards the specified link.
  • Method Details

    • forward

      void forward(Link link) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Forwards the specified link.
      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