diff --git a/plugins/echo.lua b/plugins/echo.lua index 2808a34..c52d78b 100755 --- a/plugins/echo.lua +++ b/plugins/echo.lua @@ -12,12 +12,19 @@ local action = function(msg) local input = msg.text:input() - if input then - sendMessage(msg.chat.id, latcyr(input)) - else + if not input then sendMessage(msg.chat.id, doc, true, msg.message_id, true) + else + local output + if msg.chat.type == 'supergroup' then + output = 'Echo:\n"' .. input .. '"' + else + output = latcyr(input) + end + sendMessage(msg.chat.id, output, true) end + end return { diff --git a/plugins/translate.lua b/plugins/translate.lua index 59b1fa8..b955be6 100755 --- a/plugins/translate.lua +++ b/plugins/translate.lua @@ -36,7 +36,7 @@ local action = function(msg) end local output = jdat.text[1] - output = latcyr(output) + output = 'Translation:\n"' .. output .. '"' sendReply(msg.reply_to_message or msg, output)