Class TdApi.InputPaidMedia

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InputPaidMedia
Enclosing class:
TdApi

public static class TdApi.InputPaidMedia extends TdApi.Object
Describes a paid media to be sent.
  • Field Details

    • type

      Type of the media.
    • media

      public TdApi.InputFile media
      Photo or video to be sent.
    • thumbnail

      public TdApi.InputThumbnail thumbnail
      Media thumbnail; pass null to skip thumbnail uploading.
    • addedStickerFileIds

      public int[] addedStickerFileIds
      File identifiers of the stickers added to the media, if applicable.
    • width

      public int width
      Media width.
    • height

      public int height
      Media height.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputPaidMedia

      public InputPaidMedia()
      Describes a paid media to be sent.
    • InputPaidMedia

      public InputPaidMedia(TdApi.InputPaidMediaType type, TdApi.InputFile media, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height)
      Describes a paid media to be sent.
      Parameters:
      type - Type of the media.
      media - Photo or video to be sent.
      thumbnail - Media thumbnail; pass null to skip thumbnail uploading.
      addedStickerFileIds - File identifiers of the stickers added to the media, if applicable.
      width - Media width.
      height - Media height.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR