Description

dlang Telegram bot api

Package Information

Version0.1.3 (2015-Oct-30)
Repository https://github.com/theSuess/delegram
LicenseMIT
CopyrightCopyright © 2015, thesuess
Authorsthesuess
Registered byDominik Süß
Dependencies

jsonizer

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

delegram

dlang Telegram API Wrapper

Usage

import delegram;
import std.stdio;

void main()
{
  Bot b = new Bot("BOT TOKEN");
  auto updates = b.getUpdates();
  foreach (update;updates)
  {
    b.sendMessage(update.message.chat.id,"Hello there, you sent me: " ~ update.message.text);
  }
}

Available versions

0.1.3 0.1.2 0.1.1 0.1.0 ~master