Skip to content

Commit 0d9e000

Browse files
committed
ok
1 parent 0d9e000 commit 0d9e000

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tgbot.deno.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ async function processTgUpdate(data: any) {
246246
}
247247

248248
async function* handleTgUpdate(data: any) {
249+
const {ok} = data;
249250
data.message ??= data.result;
250251
if ("callback_query" in data) return yield* handleCallbackQuery(data);
251252
if ("inline_query" in data) return yield* handleInlineQuery(data);
@@ -547,6 +548,18 @@ Be grateful for your abilities and your incredible success and your considerable
547548
text:
548549
`Zjištěno porušení pravidel uživatelem ${data.message.from.first_name}, tento incident byl zaznamenán. Příště prosím přidejte do zpávy tento disclaimer:\n\n${disclaimer}`,
549550
});
551+
if(ok) {
552+
yield await tgCall({
553+
chat_id: data.message.chat.id,
554+
text: "oh shit sry mb",
555+
});
556+
yield await tgCall({
557+
chat_id: data.message.chat.id,
558+
text: data.message.text + "\n\n" + disclaimer,
559+
entities: data.message.entities,
560+
});
561+
}
562+
break;
550563
}
551564
}
552565
}

0 commit comments

Comments
 (0)