Files
TorrServerJellyfin/server/tgbot/delete.go
2025-03-22 00:14:29 +03:00

22 lines
344 B
Go

package tgbot
import (
tele "gopkg.in/telebot.v4"
"server/torr"
)
func deleteTorrent(c tele.Context) {
args := c.Args()
hash := args[1]
torr.RemTorrent(hash)
return
}
func clear(c tele.Context) error {
torrents := torr.ListTorrent()
for _, t := range torrents {
torr.RemTorrent(t.TorrentSpec.InfoHash.HexString())
}
return nil
}