local doc = [[ /echo Repeat a string of text! ]] local triggers = { '^/echo[@'..bot.username..']*' } local action = function(msg) local input = msg.text:input() if input then sendMessage(msg.chat.id, latcyr(input)) else sendReply(msg, doc) end end return { action = action, triggers = triggers, doc = doc }