Documentation
¶
Overview ¶
Package longpoll implements Bots Long Poll API.
See more https://dev.vk.com/ru/api/bots-long-poll/getting-started
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TsFromContext ¶
TsFromContext returns the ts from context.
Types ¶
type LongPoll ¶
type LongPoll struct { GroupID int Server string Key string Ts string Wait int VK *api.VK Client *http.Client events.FuncList // contains filtered or unexported fields }
LongPoll struct.
func NewLongPoll ¶
NewLongPoll returns a new LongPoll.
The LongPoll will use the http.DefaultClient. This means that if the http.DefaultClient is modified by other components of your application the modifications will be picked up by the SDK as well.
func NewLongPollCommunity ¶
NewLongPollCommunity returns a new LongPoll for community token.
The LongPoll will use the http.DefaultClient. This means that if the http.DefaultClient is modified by other components of your application the modifications will be picked up by the SDK as well.
func (*LongPoll) FullResponse ¶
FullResponse handler.
func (*LongPoll) RunWithContext ¶ added in v2.8.0
RunWithContext handler.