def notifoff(message): try: from sedenecem.sql.keep_read_sql import kread except BaseException: edit(message, f'`{get_translation("nonSqlMode")}`') return kread(str(-1)) edit(message, f'`{get_translation("pmNotifOff")}`')
def mutechat(message): try: from sedenecem.sql.keep_read_sql import kread except BaseException: edit(message, f'`{get_translation("nonSqlMode")}`') return status = kread(str(message.chat.id)) if status: edit(message, f'`{get_translation("chatMuted")}`') else: edit(message, f'`{get_translation("chatAlreadyMuted")}`') sleep(2) message.delete() send_log(get_translation('chatLog', [message.chat.id]))