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