Skip to content

Commit

Permalink
Add helper AddThreadMessageText
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Nov 1, 2024
1 parent 8d2c488 commit f77bb28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pachca.go
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,11 @@ func (c *Client) AddThreadMessage(messageID uint64, message *MessageRequest) (*M
return c.AddMessage(message)
}

// AddThreadMessageText helper to create thread and add new message with given text to it
func (c *Client) AddThreadMessageText(messageID uint64, text string) (*Message, error) {
return c.AddThreadMessage(messageID, &MessageRequest{Content: text})
}

// FILES //////////////////////////////////////////////////////////////////////////// //

// UploadFile uploads new file and returns key of it
Expand Down

0 comments on commit f77bb28

Please sign in to comment.