Class SendVoice


public class SendVoice extends SendBuilder<SendVoice, Message>
SendVoice class. Returns Message on success.
Since:
3 March 2025
  • Constructor Details

  • Method Details

    • caption

      public SendVoice caption(String caption)
      Optional
      Parameters:
      caption - Voice message caption, 0-1024 characters after entities parsing
      Returns:
      SendVoice
    • captionEntities

      public SendVoice captionEntities(MessageEntity[] caption_entities)
      Optional
      Parameters:
      caption_entities - A list of special entities that appear in the caption, which can be specified instead of parse_mode
      Returns:
      SendVoice