mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 06:52:01 -08:00
18 lines
450 B
Go
18 lines
450 B
Go
|
package events // import "github.com/SevereCloud/vksdk/v2/events"
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/SevereCloud/vksdk/v2/internal"
|
||
|
)
|
||
|
|
||
|
// GroupIDFromContext returns the GroupID from context.
|
||
|
func GroupIDFromContext(ctx context.Context) int {
|
||
|
return ctx.Value(internal.GroupIDKey).(int)
|
||
|
}
|
||
|
|
||
|
// EventIDFromContext returns the EventID from context.
|
||
|
func EventIDFromContext(ctx context.Context) string {
|
||
|
return ctx.Value(internal.EventIDKey).(string)
|
||
|
}
|