github.com/tada-team/tdproto@v1.51.57/icon_data.go (about)

     1  package tdproto
     2  
     3  // Small or large icon
     4  type SingleIcon struct {
     5  	// absolute url to icon
     6  	Url string `json:"url"`
     7  
     8  	// Icon width, in pixels
     9  	Width int `json:"width"`
    10  
    11  	// Icon height, in pixels
    12  	Height int `json:"height"`
    13  }
    14  
    15  // Icon data. For icon generated from display name contains Letters + Color fields.
    16  type IconData struct {
    17  	// Small icon
    18  	Sm SingleIcon `json:"sm"`
    19  
    20  	// Large image
    21  	Lg SingleIcon `json:"lg"`
    22  
    23  	// Letters (only for stub icon)
    24  	Letters string `json:"letters,omitempty"`
    25  
    26  	// Icon background color (only for stub icon)
    27  	Color string `json:"color,omitempty"`
    28  
    29  	// Compact representation of a placeholder for an image (experimental)
    30  	Blurhash string `json:"blurhash,omitempty"`
    31  
    32  	// Deprecated
    33  	Stub string `json:"stub,omitempty"`
    34  }