Class SendVideoNote


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

    • SendVideoNote

      public SendVideoNote(Object chat_id, String video_note, Api api)
      Required
      Parameters:
      chat_id - chat id
      video_note - file id
      api - api
      See Also:
    • SendVideoNote

      public SendVideoNote(Object chat_id, File video_note, Api api)
      Required
      Parameters:
      chat_id - chat id
      video_note - file
      api - api
  • Method Details

    • thumbnail

      public SendVideoNote thumbnail(String thumbnail)
      Optional
      Parameters:
      thumbnail - Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Thumbnails can't be reused and can be only uploaded as a new file
      Returns:
      SendVideoNote
    • thumbnail

      public SendVideoNote thumbnail(File thumbnail)
      Optional
      Parameters:
      thumbnail - Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Thumbnails can't be reused and can be only uploaded as a new file
      Returns:
      SendVideoNote
    • length

      public SendVideoNote length(int length)
      Optional
      Parameters:
      length - Video width and height, i.e. diameter of the video message
      Returns:
      SendVideoNote
    • duration

      public SendVideoNote duration(int duration)
      Optional
      Parameters:
      duration - Duration of sent video in seconds
      Returns:
      SendVideoNote