MCPcopy Index your code
hub / github.com/GetStream/stream-cli / CreateMessageWithText

Function CreateMessageWithText

test/helpers.go:81–85  ·  view source on GitHub ↗
(channelID, userID, text string)

Source from the content-addressed store, hash-verified

79}
80
81func CreateMessageWithText(channelID, userID, text string) string {
82 c := InitClient()
83 msg, _ := c.Channel("messaging", channelID).SendMessage(context.Background(), &stream.Message{Text: text}, userID)
84 return msg.Message.ID
85}
86
87func DeleteMessage(id string) {
88 c := InitClient()

Callers 2

TestTranslateMessageFunction · 0.92
CreateMessageFunction · 0.85

Calls 1

InitClientFunction · 0.85

Tested by 1

TestTranslateMessageFunction · 0.74