Enhance NewContext function to include ChatID parameter for improved context management

This commit is contained in:
Max 2024-12-12 20:21:02 +08:00
parent 153efc1a49
commit de7f5fc9b1

View file

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