vklib 0.2.2
vklib: ^0.2.2 copied to clipboard
Simple asynchronous framework for VK API.
VK SDK for Dart. #
VK SDK for Dart allows you to use the VK API easily.
Install #
Add to your pubspec.yaml
dependencies:
VkLib: ^0.2.2
Features #
Художественный фильм "Спиздили"
- LongPoll
- ✅ Bots
- ❌ User
Todo #
- BotsLongPoll Context
- Another Auth Method
- Optimization For Mobile Devices
- Useful Bot API
- UserLongPoll
Usage #
import 'package:vklib/vklib.dart';
void main() async {
var vk = VkLib(token: '%token');
var lp = BotsLongPoll(vk.api);
lp.on(BotsEventsEnum.MessageNew, (event) async {
print(event.object);
await vk.api.messages.send(
user_id: 1,
message: 'Hello',
);
});
lp.start();
}