1.0.10 • Published 1 year ago

tgapi-client v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.8

1 year ago

1.0.10

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago