You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matterbridge/vendor/github.com/SevereCloud/vksdk/v2/longpoll-bot/context.go

13 lines
285 B
Go

package longpoll // import "github.com/SevereCloud/vksdk/v2/longpoll-bot"
import (
"context"
"github.com/SevereCloud/vksdk/v2/internal"
)
// TsFromContext returns the ts from context.
func TsFromContext(ctx context.Context) int {
return ctx.Value(internal.LongPollTsKey).(int)
}