push

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(target Target)

Send 向目标推送目标消息

Types

type Target

type Target struct {
	Msg        message.Message
	Friends    []int64
	Groups     []int64
	DoNotCheck bool

	Ctx *zero.Ctx
}

Target 推送目标

func (*Target) CheckFriends

func (t *Target) CheckFriends()

func (*Target) CheckGroups

func (t *Target) CheckGroups()

func (*Target) GetCtx

func (t *Target) GetCtx() *zero.Ctx

func (*Target) SelfCheck

func (t *Target) SelfCheck()

SelfCheck 检查提供的Friends是否为自己的好友、Groups是否为自己加入的群

func (*Target) Send

func (t *Target) Send()

Send to target.everyone

Jump to

Keyboard shortcuts

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