import { TelegramClient } from 'telegram' ; import { StringSession } from 'telegram/sessions' ; import { Logger } from 'telegram/extensions' ; import env from './env' ; Logger . setLevel ( 'none' ) ; export const client = new TelegramClient ( new StringSession ( env . STRING_SESSION ) , env . API_ID , env . API_HASH , { connectionRetries : 10 } ) ;