Documentation ¶
Index ¶
- Constants
- Variables
- func CmdsInit()
- func Dict(list interface{}) map[string]interface{}
- func F(event *Event)
- func HandleEvent(eventtype string, call func(*Event, map[string]interface{}))
- func HasString(list []interface{}, value string) bool
- func Init(call func(*Event), command string, access int, bot_ids []int)
- func List(dict interface{}) []interface{}
- func ReadFile(path string) []byte
- func ReadFileString(path string) string
- func RunHandlers(eventtype string, event *Event, updates map[string]interface{})
- func UploadFile(url string, filename string, field string) map[string]interface{}
- type Bot
- type COMMAND
- type Event
- type File
- type LPData
- type LongPoll
Constants ¶
View Source
const BASE_URL = "https://api.vk.com/method/"
Variables ¶
View Source
var COMMANDS map[string]COMMAND
View Source
var HANDLERS map[string][]func(*Event, map[string]interface{})
Functions ¶
func HandleEvent ¶
func ReadFileString ¶
func RunHandlers ¶
Types ¶
type LPData ¶
type LPData struct {
// contains filtered or unexported fields
}
func (*LPData) GetLongPoll ¶
Click to show internal directories.
Click to hide internal directories.