clipboard

package
v0.20260526.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoImage = errors.New("no image in clipboard")

Functions

func HasImage

func HasImage() bool

HasImage checks whether the system clipboard currently holds an image.

func PasteImage

func PasteImage(dir, chatID string, seq int) (string, error)

PasteImage grabs an image from the system clipboard and saves it as PNG into dir. The filename is built from chatID and seq. Returns the full path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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