import { Api } from 'telegram' ; import { Snake } from '../../client' ; import { ResultAffectedMessages } from './DeleteMessages' ; export async function ReadMessageContents ( snakeClient , messageId ) { try { return new ResultAffectedMessages ( await snakeClient . client . invoke ( new Api . messages . ReadMessageContents ( { id : messageId , } ) ) ) ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.readMessageContents(${ JSON . stringify ( messageId ) })` ) ; } }