2023-10-16 19:23:53 +03:00
|
|
|
// import { BaseTelegramClient, TcpTransport } from '../../src.js'
|
|
|
|
// import { NodeCryptoProvider } from '../../utils.js'
|
2021-07-27 15:32:18 +03:00
|
|
|
|
2023-10-16 19:23:53 +03:00
|
|
|
// export function createTestTelegramClient() {
|
|
|
|
// const tg = new BaseTelegramClient({
|
|
|
|
// // provided explicitly because mocha
|
|
|
|
// crypto: () => new NodeCryptoProvider(),
|
|
|
|
// transport: () => new TcpTransport(),
|
|
|
|
// // example values from tdlib
|
|
|
|
// apiId: 94575,
|
|
|
|
// apiHash: 'a3406de8d171bb422bb6ddf3bbd800e2',
|
|
|
|
// testMode: true,
|
|
|
|
// })
|
|
|
|
// tg.log.level = 0
|
2023-06-05 03:30:48 +03:00
|
|
|
|
2023-10-16 19:23:53 +03:00
|
|
|
// return tg
|
|
|
|
// }
|