import { Api } from 'telegram' ; import { Snake } from '../../client' ; export async function GetChannels ( snakeClient , chatId ) { try { let results = await snakeClient . client . invoke ( new Api . channels . GetChannels ( { id : chatId , } ) ) ; return results ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.getChannels(${ chatId })` ) ; } }