(channelID, userID, text string)
| 79 | } |
| 80 | |
| 81 | func 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 | |
| 87 | func DeleteMessage(id string) { |
| 88 | c := InitClient() |