forked from MTSR/telegram
Show quoted message if the arrived message is a reply
This commit is contained in:
parent
f7f7a4d90a
commit
572c2bb2cf
6
init.lua
6
init.lua
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user