Documentation ¶
Overview ¶
Package longpoll implements Bots Long Poll API.
See more https://vk.com/dev/bots_longpoll
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶ added in v1.5.0
NewLongpoll returns a new Lonpoll.
The Lonpoll 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 ¶ added in v1.6.0
NewLongpollCommunity returns a new Lonpoll for community token.
The Lonpoll 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 ¶
func (lp *Longpoll) FullResponse(f func(object.LongpollBotResponse))
FullResponse handler.
Click to show internal directories.
Click to hide internal directories.