К
Size: a a a
К
ZA
ZA
ZA
К
ZA
DK
ZA
# Define the function that sends weather to the chat on a schedule
@dp.message_handler()
async def sched():
for id, arr in arr_dict.items():
msg = get_weather(arr)
await bot.send_message(chat_id=id, text=msg)
# Create scheduler with interval 1 day
scheduler = AsyncIOScheduler()
scheduler.add_job(sched, 'cron', day_of_week='mon-sun', hour=2, minute=00)
scheduler.start()
DK
# Define the function that sends weather to the chat on a schedule
@dp.message_handler()
async def sched():
for id, arr in arr_dict.items():
msg = get_weather(arr)
await bot.send_message(chat_id=id, text=msg)
# Create scheduler with interval 1 day
scheduler = AsyncIOScheduler()
scheduler.add_job(sched, 'cron', day_of_week='mon-sun', hour=2, minute=00)
scheduler.start()
ZA
ZA
DK
DK
DK
ZA
ZA
ZA
def sched():
for id, arr in arr_dict.items():
msg = get_weather(arr)
await bot.send_message(chat_id=id, text=msg)
ZA
BM
ЕП