Module tdlight.api

Class TdApi.GetMapThumbnailFile

Enclosing class:
TdApi

public static final class TdApi.GetMapThumbnailFile extends TdApi.Function<TdApi.File>
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded. Returns File
  • Field Details

    • location

      public TdApi.Location location
      Location of the map center.
    • zoom

      public int zoom
      Map zoom level; 13-20.
    • width

      public int width
      Map width in pixels before applying scale; 16-1024.
    • height

      public int height
      Map height in pixels before applying scale; 16-1024.
    • scale

      public int scale
      Map scale; 1-3.
    • chatId

      public long chatId
      Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetMapThumbnailFile

      public GetMapThumbnailFile()
      Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded. Returns File
    • GetMapThumbnailFile

      public GetMapThumbnailFile(TdApi.Location location, int zoom, int width, int height, int scale, long chatId)
      Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded. Returns File
      Parameters:
      location - Location Location of the map center.
      zoom - int Map zoom level; 13-20.
      width - int Map width in pixels before applying scale; 16-1024.
      height - int Map height in pixels before applying scale; 16-1024.
      scale - int Map scale; 1-3.
      chatId - long Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.
    • GetMapThumbnailFile

      public GetMapThumbnailFile(DataInput input) throws IOException
      Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded. Returns File
      Throws:
      IOException
  • Method Details