def
mode:
return arg.split()[1]
@bot.message_handler(commands=['antim'])
def mat(message):
mod=mode(message.text)
if mod == 'on':
names = ['mats']
for name in names:
if name in message.text.lower():
bot.reply_to(message, ' Не матерись!')
elif mod == 'off':
None