Class AnimationMetadataForwarder
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.forwarder.AnimationMetadataForwarder
- All Implemented Interfaces:
MetadataForwarder
Forwards animation metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforward(Link.Metadata metadata, boolean hasSpoiler) Forwards the metadata of a Reddit link to Telegram.
-
Constructor Details
-
AnimationMetadataForwarder
public AnimationMetadataForwarder()
-
-
Method Details
-
forward
public void forward(Link.Metadata metadata, boolean hasSpoiler) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException Description copied from interface:MetadataForwarderForwards the metadata of a Reddit link to Telegram.- Specified by:
forwardin interfaceMetadataForwarder- Parameters:
metadata- the metadata of the Reddit linkhasSpoiler- indicates whether the link has a spoiler- Throws:
IOException- if an I/O error occurs while forwardingorg.telegram.telegrambots.meta.exceptions.TelegramApiException- if an error occurs while sending the message to Telegram
-