0.7.1 • Published 3 years ago

@telegraf/client v0.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@telegraf/client

Low-level library for performing Telegram Bot API calls.

Provides StreamFile for uploading arbitrary streams. Other objects with compatible interface (such as File provided by fetch-blob, undici, or formdata-node) should work as well.

const { File } = require("formdata-node");
const { Client } = require("@telegraf/client");

const document = new File(["42"], "answer.txt");
const client = new Client(process.env.BOT_TOKEN);

await client.call("sendDocument", { chat_id, document });
0.3.0

3 years ago

0.7.1

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.2.0

4 years ago

0.1.1

4 years ago