bot

package
v0.0.0-...-08219f7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	*telegram.Bot
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) (*Bot, error)

func (*Bot) CWD

func (b *Bot) CWD() putio.File

func (*Bot) Children

func (b *Bot) Children() []putio.File

func (*Bot) ConvertToMP4

func (b *Bot) ConvertToMP4(ctx context.Context, id int64) error

func (*Bot) ListFiles

func (b *Bot) ListFiles(ctx context.Context, parent int64) ([]putio.File, putio.File, error)

func (*Bot) Messages

func (b *Bot) Messages() <-chan *Message

func (*Bot) Mkdir

func (b *Bot) Mkdir(ctx context.Context, dirname string, parentid int64) (*putio.File, error)

func (*Bot) MoveFiles

func (b *Bot) MoveFiles(ctx context.Context, parentid int64, files ...int64) error

func (*Bot) NewTransfer

func (b *Bot) NewTransfer(ctx context.Context, url string) (putio.Transfer, error)

func (*Bot) SelectFile

func (b *Bot) SelectFile(f putio.File)

func (*Bot) SelectedFile

func (b *Bot) SelectedFile() putio.File

func (*Bot) SetCWD

func (b *Bot) SetCWD(cwd putio.File)

func (*Bot) SetChildren

func (b *Bot) SetChildren(c []putio.File)

func (*Bot) SetSubtitles

func (b *Bot) SetSubtitles(subs []*provider.Subtitle)

func (*Bot) Subtitles

func (b *Bot) Subtitles() []*provider.Subtitle

func (*Bot) UploadFile

func (b *Bot) UploadFile(ctx context.Context, rc io.ReadCloser, filename string, parentid int64) error

type Message

type Message struct {
	*telegram.Message
}

func (*Message) Args

func (m *Message) Args() []string

func (*Message) Command

func (m *Message) Command() string

Jump to

Keyboard shortcuts

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