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.

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();
}
9
likes
0
points
33
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