feat: save file by cmd

This commit is contained in:
krau
2024-11-09 11:34:28 +08:00
parent 454d69c9d4
commit e3cd659eb3
2 changed files with 105 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/celestix/gotgproto"
"github.com/celestix/gotgproto/dispatcher"
tgTypes "github.com/celestix/gotgproto/types"
"github.com/gotd/td/tg"
"github.com/krau/SaveAny-Bot/common"
"github.com/krau/SaveAny-Bot/logger"
@@ -14,7 +13,7 @@ import (
"github.com/krau/SaveAny-Bot/types"
)
func supportedMediaFilter(m *tgTypes.Message) (bool, error) {
func supportedMediaFilter(m *tg.Message) (bool, error) {
if not := m.Media == nil; not {
return false, dispatcher.EndGroups
}