diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-23 18:48:09 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-23 18:48:09 +0500 |
| commit | f47042f51a49f39a4724f4e6f07b6e7250d87fe8 (patch) | |
| tree | 8be2c393228d2211e4791a5481e5be8b94e6d641 /luamods/telegram.lua | |
| parent | 157a102b10aa481c1423a91360e8b5d90015b512 (diff) | |
feat: return post link
Diffstat (limited to 'luamods/telegram.lua')
| -rw-r--r-- | luamods/telegram.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/luamods/telegram.lua b/luamods/telegram.lua index 975740a..760b0a5 100644 --- a/luamods/telegram.lua +++ b/luamods/telegram.lua @@ -3,14 +3,14 @@ local lines = { ["not_configured"] = "{sender.alias_name}: This command is not set up properly. Try again later.", ["not_found"] = "{sender.alias_name}: Channel %s not found.", ["no_value"] = "{sender.alias_name}: Public Telegram channel must be specified.", - ["message"] = "{sender.alias_name}: %s's last post: %s (posted %s ago)", + ["message"] = "{sender.alias_name}: %s's last post: %s (posted %s ago) (%s)", ["no_messages"] = "{sender.alias_name}: This Telegram channel does not have any posts." }, russian = { ["not_configured"] = "{sender.alias_name}: Команда не настроена. Попробуйте позже.", ["not_found"] = "{sender.alias_name}: Канал %s не найден.", ["no_value"] = "{sender.alias_name}: Нужно указать публичный Telegram канал.", - ["message"] = "{sender.alias_name}: Последний пост %s: %s (опубликовано %s назад)", + ["message"] = "{sender.alias_name}: Последний пост %s: %s (опубликовано %s назад) (%s)", ["no_messages"] = "{sender.alias_name}: Этот Telegram канал не содержит каких-либо постов." }, } @@ -63,6 +63,6 @@ Get the latest post from the specified public Telegram channel. end return l10n_custom_formatted_line_request(request, lines, "message", - { request.message, latest_post.title, post_time }) + { request.message, latest_post.title, post_time, latest_post.id }) end, } |
