2.2.0 • Published 5 years ago

tdl-wrapper v2.2.0

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

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.0

5 years ago