longpoll

package
v0.0.3-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Bot     *API.Bot
	Session *API.ResponseLongPoll
	Scenes  *scene.Scenes
	Wait    int
	// contains filtered or unexported fields
}

Options - 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 Wait - time of waiting for the next request

func Create

func Create(properties ...any) *Options

func (*Options) Config

func (config *Options) Config(event string, value any) *Options

func (*Options) Endless

func (config *Options) Endless() error

func (*Options) EndlessListen

func (config *Options) EndlessListen() error

func (*Options) Listen

func (config *Options) Listen() error

func (*Options) Requests

func (config *Options) Requests(logsMain requestsMain)

Directories

Path Synopsis
community
user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL