Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewTelegramNotifier ¶
func NewTelegramNotifier(ctx tele.Context) application.Notifier
Types ¶
type BotParams ¶
type BotParams struct { fx.In Token BotToken Handlers Handlers Admins TelegramAdmins }
type Handlers ¶
type Handlers struct { fx.In StartCommandHandler StartCommandHandler TextHandler TextHandler InlineQueryHandler InlineQueryHandler InlineResultHandler InlineResultHandler }
type InlineQueryHandler ¶
type InlineQueryHandler struct { fx.In Logger logging.Logger Repo application.TorrentRepository }
type InlineResultHandler ¶
type InlineResultHandler struct { fx.In Logger logging.Logger Usecase application.DownloadTorrentUsecase }
type StartCommandHandler ¶
type TelegramAdmins ¶
type TelegramAdmins []TelegramUserId
type TelegramUserId ¶
type TelegramUserId int64
type TextHandler ¶
type TextHandler struct { fx.In Logger logging.Logger Repo application.TorrentRepository }
Click to show internal directories.
Click to hide internal directories.