import { Api } from 'telegram' ; import { Snake } from '../../client' ; import { BigInteger } from "big-integer" ; export interface getUserPhotosMoreParams { offset ? : number ; maxId ? : BigInteger ; limit ? : number ; } export async function GetUserPhotos ( snakeClient , chatId , more ? ) { try { let results = await snakeClient . client . invoke ( new Api . photos . GetUserPhotos ( { userId : chatId , ... more , } ) ) ; return results ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.getUserPhotos(${ chatId }${ more ? ',' + JSON . stringify ( more ) : '' })` ) ; } }