github.com/tada-team/tdproto@v1.51.57/tdapi/atlinks.go (about) 1 package tdapi 2 3 import "github.com/tada-team/tdproto" 4 5 // @-links filter 6 type AtLinksFilter struct { 7 // Enable markdown 8 Markdown bool `schema:"markdown"` 9 } 10 11 // @-links autocomplete response 12 type AtLinks []AtLink 13 14 // @-link autocomplete information 15 type AtLink 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 // Hint for user, if any 23 Help string `json:"help,omitempty"` 24 25 // Icon data, if any 26 Icons *tdproto.IconData `json:"icons,omitempty"` 27 28 // Internal details, if any 29 Meta *AtLinkMeta `json:"meta,omitempty"` 30 } 31 32 // @-link autocomplete details 33 type AtLinkMeta struct { 34 // Contact or section jid 35 Jid tdproto.JID `json:"jid"` 36 37 // Section uid (for contact sections only) 38 Section string `json:"section,omitempty"` 39 }