forked from MTSR/telegram
fork
This commit is contained in:
parent
963006427e
commit
d99eecd773
2
init.lua
2
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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user