From 2c0bbe31111cd4c6e9a0ab316346add54cc8ddcc Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Tue, 5 Apr 2022 14:12:12 +0200 Subject: [PATCH] Work in progress, need some communication first. Working on bot_updates --- telegram_bot/bot_updates.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telegram_bot/bot_updates.py b/telegram_bot/bot_updates.py index 88c3e86..d5f351b 100644 --- a/telegram_bot/bot_updates.py +++ b/telegram_bot/bot_updates.py @@ -24,6 +24,9 @@ import sys example 0 8 * * * -> daily update at 8am ''' +user_ids = [] +user_crontab = [] + def main_loop(): """ main loop for regularly sending updates :raises: none @@ -31,6 +34,9 @@ def main_loop(): :rtype: none """ + current_time = time.ctime() + send_to_user(current_time) + def send_to_user(pText, pUser_id = 1770205310):