translate.lua now enquotes translations.
echo.lua now enquotes echos in supergroups.
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 topkecleon
					topkecleon