app

package
v0.0.0-...-5d7768c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	PublishDownloadedVideo *pubsubcommand.PublishDownloadedVideo
	TelegramCommands       []tgcommandhandler
}

func NewApplicationFromConfig

func NewApplicationFromConfig(ctx context.Context, servicename string, projectId string, telegramBotToken string, videoUrlPostedTopicId string, videoFilesBucketUrl string) Application

func (*Application) HandleTelegramMessage

func (app *Application) HandleTelegramMessage(ctx context.Context, msg *tgbotapi.Message) error

func (*Application) PublishVideo

func (app *Application) PublishVideo(ctx context.Context, originalUrl string, savedAddr string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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