message_actions

package
v0.0.0-...-1376763 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ConversationEdited = "conv.edited"
View Source
const ConversationKick = "conv.kicked"
View Source
const ConversationVersionUpdate = "conv.update"

Not stored system messages

View Source
const DeletedMessage = "msg.deleted"
View Source
const GroupMemberInvite = "group.member_invite"
View Source
const GroupMemberJoin = "group.member_join"
View Source
const GroupMemberKick = "group.member_kick"
View Source
const GroupMemberLeave = "group.member_leave"
View Source
const GroupNewAdmin = "group.new_admin"

Stored system messages

View Source
const GroupRankChange = "group.rank_change"

Variables

This section is empty.

Functions

func AttachAccount

func AttachAccount(encrypted string) string

func HandleDelete

func HandleDelete(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error

Action: msg_delete

func HandleGet

func HandleGet(c *fiber.Ctx, token conversations.ConversationToken, messageId string) error

Action: msg_get

func HandleListAfter

func HandleListAfter(c *fiber.Ctx, token conversations.ConversationToken, after uint64) error

Action: msg_list_after

func HandleListBefore

func HandleListBefore(c *fiber.Ctx, token conversations.ConversationToken, before uint64) error

Action: msg_list_before

func HandleSend

func HandleSend(c *fiber.Ctx, token conversations.ConversationToken, action MessageSendAction) error

Action: msg_send

func MessageEvent

func MessageEvent(message conversations.Message) pipes.Event

func SendNotStoredSystemMessage

func SendNotStoredSystemMessage(conversation string, content string, attachments []string) error

Send a system message that isn't stored in the database

func SendSystemMessage

func SendSystemMessage(conversation string, content string, attachments []string) error

Send a system message that is stored in the database

Types

type MessageSendAction

type MessageSendAction struct {
	Token string `json:"token"` // Timestamp token
	Data  string `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL