Skip to content

Commit

Permalink
- feat: archiveName field for ParserGenerateChatsResponse,ParserGetS…
Browse files Browse the repository at this point in the history
…tateResponse,ParserUploadArchiveResponse
  • Loading branch information
Victor Neznaykin committed Jul 25, 2022
1 parent 706b66b commit 5520b60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.51.14
- feat: archiveName field for ParserGenerateChatsResponse,ParserGetStateResponse,ParserUploadArchiveResponse

v1.51.13
- fix: parse archive state response generation

Expand Down
9 changes: 9 additions & 0 deletions tdapi/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ type ParserUploadArchiveResponse struct {

// ActionType must be archive_unpacking
ActionType tdproto.ActionType `json:"action_type"`

// ArchiveName name of archive
ArchiveName string `json:"archive_name"`
}

// ParserGetStateResponse response structure for method GetArchiveState
Expand All @@ -34,6 +37,9 @@ type ParserGetStateResponse struct {
// Localized Body
Body string `json:"body,omitempty"`

// ArchiveName name of archive
ArchiveName string `json:"archive_name"`

// Has error
HasError bool `json:"has_error"`
}
Expand Down Expand Up @@ -78,4 +84,7 @@ type ParserGenerateChatsResponse struct {

// ActionType must be generate_chat
ActionType tdproto.ActionType `json:"action_type"`

// ArchiveName name of archive
ArchiveName string `json:"archive_name"`
}

0 comments on commit 5520b60

Please sign in to comment.