X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/a345df4e4bbf9dbaf3da1ce548896eef8f515de3..fc51ee2f545233df3cc1fa2fd4f28a4484c6bc00:/botapi.go?ds=inline diff --git a/botapi.go b/botapi.go index d02aff0..57bf9db 100644 --- a/botapi.go +++ b/botapi.go @@ -87,6 +87,17 @@ type botChat struct { Type string `json:"type"` } +// botEntity is a message entity of sendMessage: a part of the text with a +// format, such as bold or a link. Offset and Length count UTF-16 code units. +// URL is the target of a text_link, and Language the language of a pre. +type botEntity struct { + Type string `json:"type"` + Offset int `json:"offset"` + Length int `json:"length"` + URL string `json:"url,omitempty"` + Language string `json:"language,omitempty"` +} + // botUser is the sender of a message. type botUser struct { ID int64 `json:"id"`