Skip to content

Commit

Permalink
added tdapi.Resp.Markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed Jul 22, 2021
1 parent 4f9c902 commit 56a9601
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v.1.36.9
- tdapi.Resp.Markup

v.1.36.8
- features.MaxProjectLength

Expand Down
7 changes: 6 additions & 1 deletion tdapi/resp.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package tdapi

import "github.com/tada-team/tdproto"

// Server responce
type Resp struct {
DebugTime string `json:"_time,omitempty"`
Ok bool `json:"ok"`
Result interface{} `json:"result,omitempty"`
Error Err `json:"error,omitempty"`
Details map[string]string `json:"details,omitempty"`
Reason string `json:"reason,omitempty"`
// Reason answers why not ok or has error
Reason string `json:"reason,omitempty"`
// Entities for reason. Experimental
Markup []tdproto.MarkupEntity `json:"markup,omitempty"`
}

0 comments on commit 56a9601

Please sign in to comment.