1.0.10 • Published 2 years ago

tgapi-client v1.0.10

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

Telegram Bot API Client

A Simple Telegram Bot API Client in Node.js.

Installation

npm i tgapi-client

Usage

const Client = require('tgapi-client')
const { File } = require('tgapi-client/utils')

const client = new Client('1953331181:AAH_8-dK4y7RTdogxBOzj9bPfZg1hSvr4jI');

client.request('sendMessage', {
    chat_id: -1001145141919,
    text: 'Hello World'
});

// Send file with multipart/form-data
client.request('sendDocument', {
    chat_id: -1001145141919,
    document: new File('./hello-world.txt', 'Hello World.txt'),
    caption: 'Hello World'
})

License

MIT

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago