jevbooks

← All projects

jev_antispam_bot

backmeupplz/jev_antispam_bot

Minimal grammY Telegram anti-spam bot powered by TypeSafe Jev.

What it is

A minimal grammY Telegram bot for group administrators that asks TypeSafe's Jev model whether each group message is spam and deletes only high-confidence matches, targeting common Telegram spam patterns.

How it uses Jev

For each new or edited text message or media caption from a non-admin group member or external channel identity, the bot sends one Jev request with twenty-one spam questions plus one linkage question per recent message. If any spam signal reaches SPAM_THRESHOLD (default 0.90), Jev separately identifies the contiguous recent messages belonging to the same campaign, and the bot deletes only that linked suffix plus the current message.

Primitives:choicescore

Technique worth stealing

Use Jev's linkage question to identify a spam campaign's contiguous message suffix, then delete only that linked suffix plus the current message.

Try it

bun install && bun run check && bun start

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricyes0.93
  • Shows a System One patternyes0.73
  • Handles uncertaintyno0.19
  • Measuredno0.08
  • Runnableyes0.91
  • Worth recommendingno0.31
  • Model replicano0.04
  • Problem scopescore on a 0–2 scale1.63
  • About Jevyes0.98

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 23 Sept 2026.