feat: enhance user client context management and improve error handling

This commit is contained in:
krau
2025-12-19 13:48:55 +08:00
parent 018ed47949
commit d3cc56c8e6
5 changed files with 17 additions and 12 deletions
@@ -110,7 +110,9 @@ func GetFilesFromUpdateLinkMessageWithReplyEdit(ctx *ext.Context, update *ext.Up
tctx := ctx
if config.C().Telegram.Userbot.Enable {
tctx = uc.GetCtx()
if uc.GetCtx() != nil {
tctx = uc.GetCtx()
}
}
for _, link := range msgLinks {