import { Api } from 'telegram' ; import { Snake } from '../../client' ; export interface exportMessageLinkMoreParams { thread ? : boolean ; grouped ? : boolean ; } export async function ExportMessageLink ( snakeClient , chatId , messageId , more ? ) { try { return snakeClient . client . invoke ( new Api . channels . ExportMessageLink ( { channel : chatId , id : messageId , ... more , } ) ) ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.exportMessageLink(${ chatId },${ messageId }${ more ? ',' + JSON . stringify ( more ) : '' })` ) ; } }