2.2.0 • Published 6 years ago

tdl-wrapper v2.2.0

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

TDL-wrapper

Build Status

Instalation

npm install tdl-wrapper

Examples

config.ts (see https://my.telegram.org/):

export const apiId = 123456;
export const apiHash = '1234567890abcdefghijklmnopqrstuv';
export const phoneNumber = '+380123456789';

index.tx:

import { apiId, apiHash, phoneNumber } from './config';
import { Client } from 'tdl-wrapper';

const client = new Client(apiId, apiHash);

const handler = async () => {
	await client.sendText('My Friend', 'ACHTUNG!!!');
};

client.connect().then(() => {
	client.setLogVerbosityLevel(1);
	client.login(() => ({ phoneNumber })).then(handler);
});

Docs: https://d-andrii.github.io/tdl-wrapper/

2.2.0

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.0

6 years ago