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

@Service public class AnimationSender extends Object
Sends animations to Telegram.
  • Constructor Details

    • AnimationSender

      public AnimationSender()
  • Method Details

    • sendAnimation

      public org.telegram.telegrambots.meta.api.objects.message.Message sendAnimation(InputFileDTO animation, String caption) throws IOException, org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Sends an animation to the Telegram admin chat.
      Parameters:
      animation - the animation to send
      caption - the caption for the animation, can be null
      Returns:
      the sent message
      Throws:
      IOException - if there is an error reading the animation file
      org.telegram.telegrambots.meta.exceptions.TelegramApiException - if there is an error sending the animation