aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--telegram-chat3
1 files changed, 2 insertions, 1 deletions
diff --git a/telegram-chat b/telegram-chat
index 8b7fa5f..e4bd783 100644
--- a/telegram-chat
+++ b/telegram-chat
@@ -74,7 +74,8 @@ $WaitFullyConnected;
:local UpdateID 0;
:foreach Update in=[ :toarray $Data ] do={
:set UpdateID [ $JsonGetKey $Update "update_id" ];
- :if ($UpdateID >= $TelegramChatOffset->2) do={
+ :if (($TelegramChatOffset->0 > 0 || [ /system/resource/get uptime ] > 5m) && \
+ $UpdateID >= $TelegramChatOffset->2) do={
:local Trusted false;
:local Message [ $JsonGetKey $Update "message" ];
:local MessageId [ $JsonGetKey $Message "message_id" ];