teledart 0.0.2 copy "teledart: ^0.0.2" to clipboard
teledart: ^0.0.2 copied to clipboard

outdatedDart 1 only

Telegram bot api framework in Dart

TeleDart #

A easy to use Telegram bot API framework in Dart

TeleDart

Bot API Version Dart Version License

Usage #

A simple usage example:

import 'dart:io' as io;

import 'package:teledart/teledart.dart';
import 'package:teledart/telegram.dart';

void main() {
  TeleDart teledart = new TeleDart(new Telegram('YOUR_BOT_TOKEN'), new Event());

  teledart.startFetching();

  teledart.onMessage(entityType: 'bot_command', keyword: 'start').listen((message) {
    teledart.telegram.sendMessage(message.from.id, 'Hello TeleDart!');
  });

  teledart.onMessage(keyword: 'TeleDart').listen((message) {
    teledart.telegram.sendPhoto(
        message.from.id,
        new io.File('example/dart_bird_catchs_telegram.png'),
        caption: 'This is how the Dart Bird and Telegram are met');
  });
}

Bugs and feature requests #

Please file feature requests and bugs at the issue tracker.

277
likes
0
pub points
89%
popularity

Publisher

verified publisherd1n0.xyz

Telegram bot api framework in Dart

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dartson, http

More

Packages that depend on teledart