Class VideoSender
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.sender.VideoSender
Service for sending video files to a Telegram chat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.telegram.telegrambots.meta.api.objects.message.Message
sendVideo
(InputFileDTO video, String caption) Sends a video file to the admin chat.
-
Constructor Details
-
VideoSender
public VideoSender()
-
-
Method Details
-
sendVideo
public org.telegram.telegrambots.meta.api.objects.message.Message sendVideo(InputFileDTO video, String caption) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException Sends a video file to the admin chat.- Parameters:
video
- the video file to sendcaption
- the caption for the video- Returns:
- the sent message
- Throws:
IOException
- if an error occurs while reading the video fileorg.telegram.telegrambots.meta.exceptions.TelegramApiException
- if an error occurs while sending the video
-