Skip to content
/ vkgo Public

๐Ÿ™๏ธ๐Ÿ’—๐Ÿญ Flexible and high-performance VK API package for Go

License

Notifications You must be signed in to change notification settings

aejoy/vkgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Bots Community

Flexible and high-performance VK API module Go

Instalation

go get github.com/aejoy/vkgo

Getting started

Examples of working bots can be seen in the catalog /samples

A simple example of a LongPoll API Bot:

package main

import (
	"github.com/aejoy/vkgo/api"
	"github.com/aejoy/vkgo/longpoll"
	"github.com/aejoy/vkgo/scene"
	"github.com/aejoy/vkgo/update"
	"log"
	"os"
)

func main() {
	bot, err := api.NewBot(os.Getenv("TOKEN"))
	if err != nil { /* ... */
	}

	messages := scene.OnMessage(func(bot *api.API, message update.Message) {
		bot.SendMessage(message.ChatID, message.Text)
	})

	log.Fatalln(longpoll.Start(bot, messages))
}

Help in solving problems

Don't know how to solve your problem? Ask the programmers from our community. There is a chance that they have already dealt with this problem and are ready to help you

About

๐Ÿ™๏ธ๐Ÿ’—๐Ÿญ Flexible and high-performance VK API package for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages