summaryrefslogtreecommitdiff
path: root/luamods/telegram.lua
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-01 16:50:39 +0500
committerilotterytea <iltsu@alright.party>2025-12-01 16:50:39 +0500
commit0d36a1ee88fb7aedf5b33af7ac95140b002c5a64 (patch)
tree7f51f629da03376e214c7683f738b05ed4be3816 /luamods/telegram.lua
parent71a4a8d6fc4a84029939003107bfbaad33b8c6ce (diff)
feat: rss timeout
Diffstat (limited to 'luamods/telegram.lua')
-rw-r--r--luamods/telegram.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/luamods/telegram.lua b/luamods/telegram.lua
index 760b0a5..220e414 100644
--- a/luamods/telegram.lua
+++ b/luamods/telegram.lua
@@ -37,7 +37,7 @@ Get the latest post from the specified public Telegram channel.
minimal_rights = "user",
handle = function(request)
local cfg = bot_config()
- if cfg.url.rssbridge == nil then
+ if cfg.rss.bridge == nil then
return l10n_custom_formatted_line_request(request, lines, "not_configured", {})
end
@@ -45,7 +45,7 @@ Get the latest post from the specified public Telegram channel.
return l10n_custom_formatted_line_request(request, lines, "no_value", {})
end
- local url = str_format(cfg.url.rssbridge, { "TelegramBridge", request.message })
+ local url = str_format(cfg.rss.bridge, { "TelegramBridge", request.message })
local channel = rss_get(url)
if channel == nil then
return l10n_custom_formatted_line_request(request, lines, "not_found", { request.message })