Class VideoSender

java.lang.Object
io.github.yvasyliev.forwarder.telegram.bot.service.sender.VideoSender
All Implemented Interfaces:
PostSender<CloseableSupplier<SendVideoDTO>, org.telegram.telegrambots.meta.api.objects.message.Message>

@Service public class VideoSender extends Object implements PostSender<CloseableSupplier<SendVideoDTO>, org.telegram.telegrambots.meta.api.objects.message.Message>
Service for sending video files to a Telegram chat.
  • Constructor Details

  • Method Details

    • send

      public org.telegram.telegrambots.meta.api.objects.message.Message send(CloseableSupplier<SendVideoDTO> sendVideoDTOSupplier) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Description copied from interface: PostSender
      Sends the given method to Telegram.
      Specified by:
      send in interface PostSender<CloseableSupplier<SendVideoDTO>, org.telegram.telegrambots.meta.api.objects.message.Message>
      Parameters:
      sendVideoDTOSupplier - the method to be sent
      Returns:
      the response received after sending
      Throws:
      IOException - if an I/O error occurs
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if a Telegram API error occurs