import { Message } from '../Utils/Message' ; import { Snake } from '../client' ; import { replyMoreParams } from '../Interface/reply' ; export class MessageContext extends Message { constructor ( ) { super ( ) ; } async reply ( text , more ? ) { if ( this . id && this . chat . id ) { let client = this . SnakeClient ; return await client . telegram . sendMessage ( this . chat . id , text , { replyToMsgId : this . id , ... more , } ) ; } } async replyWithHTML ( text , more ? ) { return await this . reply ( text , { parseMode : 'html' , ... more , } ) ; } async replyWithMarkdown ( text , more ? ) { return await this . reply ( text , { parseMode : 'markdown' , ... more , } ) ; } }