Documentation ¶
Index ¶
- Variables
- type TelegramMessageHandler
- type VideoService
- func (s *VideoService) DownloadVideo(ctx context.Context, videoOption *models.VideoOption) (string, error)
- func (s *VideoService) GetVideoInfo(ctx context.Context, url string) (*models.VideoInfo, *fastjson.Value, error)
- func (s *VideoService) GetVideoOptions(videoInfo *models.VideoInfo, json *fastjson.Value) ([]*models.VideoOption, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type TelegramMessageHandler ¶
type TelegramMessageHandler struct {
// contains filtered or unexported fields
}
func NewMessageHandler ¶
func NewMessageHandler(conf *config.Config, vs *VideoService) *TelegramMessageHandler
func (*TelegramMessageHandler) OnCallback ¶
func (h *TelegramMessageHandler) OnCallback(userbotClient *telegram.UserBotClient) telebot.HandlerFunc
func (*TelegramMessageHandler) OnNewMessage ¶
func (h *TelegramMessageHandler) OnNewMessage() telebot.HandlerFunc
func (*TelegramMessageHandler) OnStart ¶
func (h *TelegramMessageHandler) OnStart() telebot.HandlerFunc
type VideoService ¶
type VideoService struct {
// contains filtered or unexported fields
}
func NewVideoService ¶
func NewVideoService(maxRetry uint, repo *repository.InMemRepository) (*VideoService, error)
func (*VideoService) DownloadVideo ¶
func (s *VideoService) DownloadVideo(ctx context.Context, videoOption *models.VideoOption) (string, error)
func (*VideoService) GetVideoInfo ¶
func (*VideoService) GetVideoOptions ¶
func (s *VideoService) GetVideoOptions(videoInfo *models.VideoInfo, json *fastjson.Value) ([]*models.VideoOption, error)
Click to show internal directories.
Click to hide internal directories.