Skip to content

Commit

Permalink
Merge pull request #47 from heffcodex/fix/getchat-fullinfo
Browse files Browse the repository at this point in the history
fix(getchat): method should return ChatFullInfo
  • Loading branch information
NicoNex authored Jun 12, 2024
2 parents 5779715 + 25860ec commit 8689659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ func (a APIResponseString) Base() APIResponseBase {
}

// APIResponseChat represents the incoming response from Telegram servers.
// Used by all methods that return a Chat object on success.
// Used by all methods that return a ChatFullInfo object on success.
type APIResponseChat struct {
Result *Chat `json:"result,omitempty"`
Result *ChatFullInfo `json:"result,omitempty"`
APIResponseBase
}

Expand Down

0 comments on commit 8689659

Please sign in to comment.