From de7f5fc9b1a91c8861199fcde738b3b7befd951c Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 12 Dec 2024 20:21:02 +0800 Subject: [PATCH] Enhance NewContext function to include ChatID parameter for improved context management --- neo/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/context.go b/neo/context.go index 100aef97..ad848c95 100644 --- a/neo/context.go +++ b/neo/context.go @@ -10,7 +10,7 @@ import ( // NewContext create a new context func NewContext(sid, cid, payload string) Context { - ctx := Context{Context: context.Background(), Sid: sid} + ctx := Context{Context: context.Background(), Sid: sid, ChatID: cid} if payload == "" { return ctx }