Enhance NewContext function to include ChatID parameter for improved context management
This commit is contained in:
parent
153efc1a49
commit
de7f5fc9b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue