mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-07 00:19:58 +08:00
feat: set dir for storages
This commit is contained in:
@@ -50,7 +50,7 @@ func handleFileMessage(ctx *ext.Context, update *ext.Update) error {
|
||||
file.FileName = fmt.Sprintf("%d_%d_%s", update.EffectiveChat().GetID(), update.EffectiveMessage.ID, file.Hash())
|
||||
}
|
||||
|
||||
if err := dao.SaveReceivedFile(&types.ReceivedFile{
|
||||
if err := dao.SaveReceivedFile(&dao.ReceivedFile{
|
||||
Processing: false,
|
||||
FileName: file.FileName,
|
||||
ChatID: update.EffectiveChat().GetID(),
|
||||
|
||||
Reference in New Issue
Block a user