sender

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendableWorker

func SendableWorker(ctx context.Context, in <-chan Sendable, bot *telebot.Bot, db database.Database)

Types

type Chats

type Chats []int64

func (Chats) Recipients

func (c Chats) Recipients() []telebot.Recipient

type Message

type Message interface {
	Hash() []byte
	Params() []interface{}
	Content() interface{}
}

type Recipients

type Recipients interface {
	Recipients() []telebot.Recipient
}

type Sendable

type Sendable interface {
	Recipients
	Message
}

type Video

type Video struct {
	Chats
	URL   string
	Title string
}

func FromVideo

func FromVideo(video ytube.Video, chats Chats) (Video, error)

func (Video) Content

func (v Video) Content() interface{}

func (Video) Hash

func (v Video) Hash() []byte

func (Video) Params

func (v Video) Params() []interface{}

Jump to

Keyboard shortcuts

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