import { Api } from "../tl" ; import { NewMessage , NewMessageEvent , NewMessageInterface } from "./NewMessage" ; export interface EditedMessageInterface extends NewMessageInterface { func ? : { ( event ) : boolean ; } ; } example export class EditedMessage extends NewMessage { func ? : { ( event ) : boolean ; } ; constructor ( editedMessageParams ) { super ( editedMessageParams ) ; } build ( update , callback , selfId ) { if ( update instanceof Api . UpdateEditChannelMessage || update instanceof Api . UpdateEditMessage ) { if ( ! ( update . message instanceof Api . Message ) ) { return undefined ; } const event = new EditedMessageEvent ( update . message , update ) ; this . addAttributes ( event ) ; return event ; } } } export class EditedMessageEvent extends NewMessageEvent { constructor ( message , originalUpdate ) { super ( message , originalUpdate ) ; } }