Skip to content

Commit

Permalink
feat: parser.ParserGetArchiveStatusResponse progress added
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed Jul 21, 2022
1 parent fd48800 commit 0a75346
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.51.8
- feat: parser.ParserGetArchiveStatusResponse progress added

v1.51.7
- fix: MappedUser.Contact - set omitempty

Expand Down
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (ct ParseStatus) String() string { return string(ct) }
// MappedUser struct for map internal user with external user
type MappedUser struct {
// Contact tada contact data
Contact Contact `json:"contact,omitempty"`
Contact *Contact `json:"contact,omitempty"`

// ExternalUserID user id from messenger
ExternalUserID string `json:"external_user_id"`
Expand Down
10 changes: 8 additions & 2 deletions tdapi/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ type ParserUploadArchiveResponse struct {
type ParserGetArchiveStatusResponse struct {
// Status archive parse status
Status tdproto.ParseStatus `json:"status"`

// Progress of archive unpacking
Progress uint16 `json:"progress"`
}

// ParserSendArchiveStatusRequest ...
type ParserSendArchiveStatusRequest struct {
Status tdproto.ParseStatus `json:"status"`
Progress uint16 `json:"progress"`
// Status archive parse status
Status tdproto.ParseStatus `json:"status"`

// Progress of archive unpacking
Progress uint16 `json:"progress"`
}

// ParserSendArchiveStatusResponse ...
Expand Down

0 comments on commit 0a75346

Please sign in to comment.