0.1.12 • Published 10 months ago

telegram-node-sdk v0.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

telegram-node-sdk

This is an unofficial telegram interface for node.js. It is a work in progress.

I'm trying to make it as typed as possible so that you can use it just with intellisense without even reading the docs!

How to use it

Just set these two environment variables:

export BOT_TOKEN=your_bot_token
export BOT_API_URL=telegram api url

Example

Send a message to a chat:

telegramBot.sendMessage({
    chat_id: 123456789,
    text: 'Hello world!'
}).then((response) => {
    console.log(response);
}).catch((error) => {
    console.error(error);
});
0.1.10

10 months ago

0.1.11

10 months ago

0.1.12

10 months ago

0.1.0

10 months ago

0.0.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.8

10 months ago

0.1.9

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago