1
0
forked from MTSR/telegram

Show quoted message if the arrived message is a reply

This commit is contained in:
neko259 2019-01-20 19:21:07 +02:00
parent f7f7a4d90a
commit 572c2bb2cf

View File

@ -97,7 +97,11 @@ function telegram.on_text_receive(msg)
if command then
command(msg)
else
minetest.chat_send_all("<" .. msg.from.first_name .. "@TG> " .. msg.text)
local message_text = msg.text
if msg.reply_to_message and msg.reply_to_message.text then
message_text = ">>" .. msg.reply_to_message.text .. "\n" .. message_text
end
minetest.chat_send_all("<" .. msg.from.first_name .. "@TG> " .. message_text)
end
end