mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-03 06:31:18 +08:00
chore: commented-out code for user storages check, for we have send_here feature now
This commit is contained in:
@@ -63,12 +63,11 @@ func saveCmd(ctx *ext.Context, update *ext.Update) error {
|
||||
return dispatcher.EndGroups
|
||||
}
|
||||
|
||||
storages := storage.GetUserStorages(user.ChatID)
|
||||
|
||||
if len(storages) == 0 {
|
||||
ctx.Reply(update, ext.ReplyTextString("无可用的存储"), nil)
|
||||
return dispatcher.EndGroups
|
||||
}
|
||||
// storages := storage.GetUserStorages(user.ChatID)
|
||||
// if len(storages) == 0 {
|
||||
// ctx.Reply(update, ext.ReplyTextString("无可用的存储"), nil)
|
||||
// return dispatcher.EndGroups
|
||||
// }
|
||||
|
||||
msg, err := GetTGMessage(ctx, update.EffectiveChat().GetID(), replyToMsgID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user