java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.forwarder.LinkForwarder
- All Implemented Interfaces:
Forwarder
Forwards links from Reddit to Telegram.
-
Constructor Summary
Constructors
-
Method Summary
void
Forwards the specified link.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LinkForwarder
public LinkForwarder()
-
Method Details
-
forward
public void forward(Link link)
throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
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