Skip to content

Commit

Permalink
Merge pull request #11 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 0.2.2
  • Loading branch information
andyone authored Nov 5, 2024
2 parents 29b876b + d3769c7 commit f267e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pachca.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ var (
ErrEmptyUsersIDS = errors.New("Users IDs are empty")
ErrEmptyTagsIDS = errors.New("Tags IDs are empty")
ErrEmptyFilePath = errors.New("Path to file is empty")
ErrInvalidToken = errors.New("Token is has wrong format")
ErrInvalidToken = errors.New("Token has wrong format")
ErrInvalidMessageID = errors.New("Message ID must be greater than 0")
ErrInvalidChatID = errors.New("Chat ID must be greater than 0")
ErrInvalidUserID = errors.New("User ID must be greater than 0")
Expand Down Expand Up @@ -1134,7 +1134,7 @@ func (c *Client) AddChatUsers(chatID uint64, membersIDs []uint64, silent bool) e
}

err := c.sendRequest(
req.PUT, getURL("/chats/%d/members", chatID),
req.POST, getURL("/chats/%d/members", chatID),
query, payload, nil,
)

Expand Down

0 comments on commit f267e97

Please sign in to comment.