Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("bot not found") ErrSessionClosed = errors.New("session closed") )
Functions ¶
Types ¶
type LongPoll ¶
type LongPoll struct { Bot *api.Bot Session *responses.LongPollServer Scenes *scene.Scenes Timeout int Mode int BotType int // 1 - community, 2 - user }
LongPoll - basic configuration structure Bot - pointer to the bot parameters Session - pointer to the session, received from the Create function Scenes - pointer to the list of scenes to process the types of events Timeout - time of waiting for the next request.
func (*LongPoll) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.