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

24 lines
362 B
Go

package tgbot
import (
tele "gopkg.in/telebot.v4"
up "server/tgbot/upload"
"strconv"
)
func upload(c tele.Context) error {
args := c.Args()
idstr := args[2]
id, err := strconv.Atoi(idstr)
if err != nil {
return err
}
up.AddRange(c, args[1], id, id)
return nil
}
func uploadall(c tele.Context) {
args := c.Args()
up.AddRange(c, args[1], 1, -1)
}