Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/botscommunity/vkgo
🏙️💗🍭 Flexible and high-performance VK API module Go
https://github.com/botscommunity/vkgo
api callback carousel go golang keyboard longpoll multibot template vk vk-api vk-bot vkontakte vkontakte-api
Last synced: 5 days ago
JSON representation
🏙️💗🍭 Flexible and high-performance VK API module Go
- Host: GitHub
- URL: https://github.com/botscommunity/vkgo
- Owner: botscommunity
- License: mit
- Created: 2023-11-04T21:10:29.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-05T22:21:33.000Z (about 1 year ago)
- Last Synced: 2024-11-15T22:40:26.362Z (about 1 month ago)
- Topics: api, callback, carousel, go, golang, keyboard, longpoll, multibot, template, vk, vk-api, vk-bot, vkontakte, vkontakte-api
- Language: Go
- Homepage:
- Size: 276 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Flexible and high-performance VK API module Go
Instalation
```bash
go get github.com/botscommunity/vkgo
```Getting started
Examples of working bots can be seen in the catalog [/samples](./samples)
A simple example of a LongPoll API Bot:
```go
package mainimport (
"github.com/botscommunity/vkgo/api"
"github.com/botscommunity/vkgo/longpoll"
"github.com/botscommunity/vkgo/scene"
"github.com/botscommunity/vkgo/update"
"os"
)func main() {
bot, err := api.New(os.Getenv("TOKEN"))
if err != nil {
panic(err)
}messageScene := scene.Message(func(bot *api.Bot, message update.Message) {
bot.SendMessage(message.ChatID, "echo message: "+message.Text)
})longpoll.Start(bot, messageScene)
}
```Help in solving problems
Don't know how to solve your problem? Ask the programmers from [our community](./CONTACTS.md). There is a chance that they have already dealt with this problem and are ready to help you