import { Api } from 'telegram' ; import { Snake } from '../../client' ; export async function GetAdminedPublicChannels ( snakeClient , byLocation = true , checkLimit = true ) { try { let results = await snakeClient . client . invoke ( new Api . channels . GetAdminedPublicChannels ( { byLocation : byLocation , checkLimit : checkLimit , } ) ) ; return results ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.getAdminedPublicChannels(${ byLocation },${ checkLimit })` ) ; } }