This commit is contained in:
YouROK
2025-03-22 00:14:29 +03:00
parent 635882ea57
commit 11d9714234
11 changed files with 785 additions and 142 deletions

23
server/tgbot/upload.go Normal file
View File

@@ -0,0 +1,23 @@
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)
}