Help us shape the future of Go! Take the 2026 Go Developer Survey

telegram

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment

func Comment(v render.View, skip int) string

func Post

func Post(v render.View) string

Types

type Channel

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

func NewChannel

func NewChannel(chat string, th publisher) *Channel

func Open

func Open(token, apiURL, chat string, log *slog.Logger) (*Channel, error)

func (*Channel) Done

func (c *Channel) Done(ref json.RawMessage) bool

func (*Channel) Key

func (c *Channel) Key() string
func (c *Channel) Link(ref json.RawMessage) string

func (*Channel) Publish

type Problem

type Problem struct {
	Error   bool
	Message string
}

func Check

func Check(ctx context.Context, token, apiURL, chat string) []Problem

Jump to

Keyboard shortcuts

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