vklib 0.2.2 copy "vklib: ^0.2.2" to clipboard
vklib: ^0.2.2 copied to clipboard

outdated

Simple asynchronous framework for VK API.

example/vklib_example.dart

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['message']['from_id']}:'
        ' ${event.object['message']['text']}');
  });

  lp.start();
}
9
likes
0
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

Simple asynchronous framework for VK API.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dotenv, http

More

Packages that depend on vklib