java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.sender.VideoSender

@Service public class VideoSender extends Object
Service for sending video files to a Telegram 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 send
      caption - the caption for the video
      Returns:
      the sent message
      Throws:
      IOException - if an error occurs while reading the video file
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if an error occurs while sending the video