Class MediaGroupForwarder
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.forwarder.MediaGroupForwarder
- All Implemented Interfaces:
Forwarder
Forwards media groups from Reddit links to Telegram.
Handles both animated images and photos, forwarding them in groups
according to the specified maximum size in the Telegram properties.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MediaGroupForwarder
public MediaGroupForwarder()
-
-
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 interfaceForwarder
- 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
-