telegram

package
v0.0.0-...-ea02315 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotClient

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

func NewBotClient

func NewBotClient(token string) (*BotClient, error)

func (*BotClient) Bot

func (c *BotClient) Bot() *telebot.Bot

type UploaderProgress

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

func NewUploaderProgress

func NewUploaderProgress() *UploaderProgress

func (*UploaderProgress) Chunk

func (*UploaderProgress) Close

func (up *UploaderProgress) Close()

func (*UploaderProgress) ProgressChan

func (up *UploaderProgress) ProgressChan() <-chan int32

type UserBotClient

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

func NewUserBotClient

func NewUserBotClient(ctx context.Context, conf *config.Config) *UserBotClient

func (*UserBotClient) UploadFile

func (c *UserBotClient) UploadFile(ctx context.Context, to tg.InputPeerClass, videoOption *models.VideoOption, path string) error

Jump to

Keyboard shortcuts

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