diff --git a/init.lua b/init.lua index 8a0dd8d..eaa8258 100644 --- a/init.lua +++ b/init.lua @@ -10,6 +10,7 @@ telegram = {} local token = minetest.settings:get("telegram.token") local chat_id = minetest.settings:get("telegram.chatid") local updates_timeout = tonumber(minetest.settings:get("telegram.timeout")) +local message_thread_id = minetest.settings:get("telegram.message_thread_id") if not updates_timeout then updates_timeout = 1 @@ -94,6 +95,7 @@ function telegram.send_message(chat_id, text) local request_body = {} request_body.chat_id = chat_id + request_body.message_thread_id = message_thread_id request_body.text = tostring(text) request_body.parse_mode = parse_mode request_body.reply_markup = "" diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..0ae3e15 --- /dev/null +++ b/mod.conf @@ -0,0 +1,5 @@ +release = 6870 +author = neko259 +name = telegram +description = Integration with telegram messenger chat +title = Telegram