post

package
v0.0.0-...-1120f02 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	// contains filtered or unexported fields
}

func New

func New(bot *bot.Bot, ctx *gumi.Ctx, urls ...string) *Post

func (*Post) Crosspost

func (p *Post) Crosspost(userID string, group *store.Group) ([]*cache.MessageInfo, error)

func (*Post) Send

func (p *Post) Send() ([]*cache.MessageInfo, error)

func (*Post) SetSkip

func (p *Post) SetSkip(indices map[int]struct{}, mode SkipMode)

type SkipMode

type SkipMode int

SkipMode is an enum that configures what indices are skipped from the send function

const (
	SkipModeNone SkipMode = iota
	SkipModeInclude
	SkipModeExclude
)

SkipMode enum

Jump to

Keyboard shortcuts

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