From c7ae0e2fff46c71078508549509e7e1175915285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marian=20=C5=A0=C3=A1mal?= Date: Tue, 23 Jun 2026 17:19:34 +0200 Subject: [PATCH] kamo nevim kdo vymyslel ze budeme mit dve branche vole ted nevim ktera je ktera --- src/tg/init.deno.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/tg/init.deno.ts b/src/tg/init.deno.ts index f8c9b23..6a6d0c3 100644 --- a/src/tg/init.deno.ts +++ b/src/tg/init.deno.ts @@ -29,6 +29,10 @@ let previousMorningSticker: { } | null = null; async function domeny() { + let resp2: any = fetch( + "https://api.open-meteo.com/v1/forecast?latitude=50.0721117&longitude=14.4052503&daily=temperature_2m_max&forecast_days=1&timezone=Europe/Prague", + ); + const resp = await fetch( "https://auctions-master.nic.cz/share/new_auctions.json", ); @@ -112,6 +116,19 @@ async function domeny() { has_reaction: false, }; } + + resp2 = await resp2; + const data2 = await resp2.json() as any; + if (data2.daily.temperature_2m_max[0] > 3e1) { + await tgCall( + { + chat_id: MAIN_CHAT_ID, + sticker: + "CAACAgQAAxUAAWo6WhwK68k09wt9ygABCHWwL5Zc1wACjiEAAnG90FEj5f-tjMk0UzwE", + }, + "sendSticker", + ); + } } export function checkStickerReaction(stickerMessageId: number) {