InputThumbnail

public struct InputThumbnail : Codable, Equatable, FunctionResult

A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 kB in size

  • Thumbnail file to send. Sending thumbnails by file_id is currently not supported

    Declaration

    Swift

    public let thumbnail: InputFile
  • Thumbnail width, usually shouldn’t exceed 320. Use 0 if unknown

    Declaration

    Swift

    public let width: Int32
  • Thumbnail height, usually shouldn’t exceed 320. Use 0 if unknown

    Declaration

    Swift

    public let height: Int32
  • A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 kB in size

    Declaration

    Swift

    public init(thumbnail: InputFile, width: Int32, height: Int32)

    Parameters

    thumbnail

    Thumbnail file to send. Sending thumbnails by file_id is currently not supported

    width

    Thumbnail width, usually shouldn’t exceed 320. Use 0 if unknown

    height

    Thumbnail height, usually shouldn’t exceed 320. Use 0 if unknown