mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 19:09:39 +08:00
fix: implement filename strategy in userbot listen mode
This commit is contained in:
@@ -14,6 +14,7 @@ type TGFile interface {
|
||||
Dler() downloader.Client // witch client to use for downloading
|
||||
Size() int64
|
||||
Name() string
|
||||
SetName(name string)
|
||||
}
|
||||
|
||||
type TGFileMessage interface {
|
||||
@@ -29,6 +30,10 @@ type tgFile struct {
|
||||
dler downloader.Client
|
||||
}
|
||||
|
||||
func (f *tgFile) SetName(name string) {
|
||||
f.name = name
|
||||
}
|
||||
|
||||
func (f *tgFile) Location() tg.InputFileLocationClass {
|
||||
return f.location
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user