fix: implement filename strategy in userbot listen mode

This commit is contained in:
krau
2025-09-28 16:49:32 +08:00
parent 40ad12a892
commit f947ee6fc7
2 changed files with 63 additions and 0 deletions

View File

@@ -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
}