import { Api } from 'telegram' ; import { Snake } from '../../client' ; import { ResultAffectedMessages } from './DeleteMessages' ; export async function ReadMentions ( snakeClient , chatId ) { try { return new ResultAffectedMessages ( await snakeClient . client . invoke ( new Api . messages . ReadMentions ( { peer : chatId , } ) ) ) ; } catch ( error ) { return snakeClient . _handleError ( error , `telegram.readMentions(${ chatId }` ) ; } }