Interface Forwarder
- 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.
Functional interface for forwarding links.
Implementations should define how to forward a given link.
-
Method Summary
-
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 forwardingorg.telegram.telegrambots.meta.exceptions.TelegramApiException
- if a Telegram API error occurs during forwarding
-