raw

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelableContext

type CancelableContext struct {
	Id     int64
	Cancel context.CancelFunc
}

func (*CancelableContext) GenerateId

func (ctx *CancelableContext) GenerateId()

type InputFile

type InputFile interface {
	FileName() string
	IsURL() bool
	Content() []byte
}

type InputMediaFiles

type InputMediaFiles interface {
	Files() map[string]InputFile
}

type Method

type Method interface {
	MethodName() string
	Files() map[string]InputFile
	ParseResult(response []byte) (*Result, error)
}

type Result

type Result struct {
	Kind   int
	Result interface{}
}

Jump to

Keyboard shortcuts

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