import Context from '@/models/Context' ; import logAnswerTime from '@/helpers/logAnswerTime' ; export default async function handleSilent ( ctx ) { ctx . dbchat . silent = ! ctx . dbchat . silent ; await ctx . dbchat . save ( ) ; await ctx . reply ( ctx . i18n . t ( ctx . dbchat . silent ? 'silent_true' : 'silent_false' ) , { parse_mode : 'Markdown' , } ) ; logAnswerTime ( ctx , '/silent' ) ; }