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

     1  package tdapi
     2  
     3  import "github.com/tada-team/tdproto"
     4  
     5  // #-links filter
     6  type SharpLinksFilter struct {
     7  	// Enable markdown
     8  	Markdown bool `schema:"markdown"`
     9  }
    10  
    11  // #-links autocomplete response
    12  type SharpLinks []SharpLink
    13  
    14  // #-link autocomplete information
    15  type SharpLink struct {
    16  	// What should be inserted to the chat
    17  	Key string `json:"key"`
    18  
    19  	// What should be visible by user
    20  	Title string `json:"title"`
    21  
    22  	// Icon data, if any
    23  	Icons *tdproto.IconData `json:"icons,omitempty"`
    24  
    25  	// Internal details
    26  	Meta SharpLinkMeta `json:"meta"`
    27  }
    28  
    29  // #-link autocomplete details
    30  type SharpLinkMeta struct {
    31  	// Chat id
    32  	Jid tdproto.JID `json:"jid"`
    33  
    34  	// Chat type
    35  	ChatType tdproto.ChatType `json:"chat_type"`
    36  
    37  	// Is task or group public for non-guests
    38  	Public bool `json:"public,omitempty"`
    39  
    40  	// Task status (for tasks)
    41  	TaskStatus string `json:"task_status,omitempty"`
    42  
    43  	// Task number (for tasks)
    44  	Num uint `json:"num,omitempty"`
    45  
    46  	// Deprecated: use `TaskStatus == "done"` comparsion
    47  	Done bool `json:"done,omitempty"`
    48  }