mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-03 15:27:45 +00:00
Update dependencies (#1800)
This commit is contained in:
5
vendor/github.com/SevereCloud/vksdk/v2/events/context.go
generated
vendored
5
vendor/github.com/SevereCloud/vksdk/v2/events/context.go
generated
vendored
@ -15,3 +15,8 @@ func GroupIDFromContext(ctx context.Context) int {
|
||||
func EventIDFromContext(ctx context.Context) string {
|
||||
return ctx.Value(internal.EventIDKey).(string)
|
||||
}
|
||||
|
||||
// VersionFromContext returns the version from context.
|
||||
func VersionFromContext(ctx context.Context) string {
|
||||
return ctx.Value(internal.EventVersionKey).(string)
|
||||
}
|
||||
|
2
vendor/github.com/SevereCloud/vksdk/v2/events/events.go
generated
vendored
2
vendor/github.com/SevereCloud/vksdk/v2/events/events.go
generated
vendored
@ -81,6 +81,7 @@ type GroupEvent struct {
|
||||
Object json.RawMessage `json:"object"`
|
||||
GroupID int `json:"group_id"`
|
||||
EventID string `json:"event_id"`
|
||||
V string `json:"v"`
|
||||
Secret string `json:"secret"`
|
||||
}
|
||||
|
||||
@ -158,6 +159,7 @@ func NewFuncList() *FuncList {
|
||||
func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint:gocyclo
|
||||
ctx = context.WithValue(ctx, internal.GroupIDKey, e.GroupID)
|
||||
ctx = context.WithValue(ctx, internal.EventIDKey, e.EventID)
|
||||
ctx = context.WithValue(ctx, internal.EventVersionKey, e.V)
|
||||
|
||||
if sliceFunc, ok := fl.special[e.Type]; ok {
|
||||
for _, f := range sliceFunc {
|
||||
|
Reference in New Issue
Block a user