ONLINEprivate@y0ke_bot

Yoke

A small Telegram bot that listens for messages, asks an AI for a thoughtful reply, and sends it back. This instance is locked down - only @iamyang and @i4n16 can chat with it, and the webhook itself sits behind a secret path and a shared header check.

Status

since 2026-06-24
Webhook

Registered

Messages

69

Users

14

Pending

0

Webhook URLhttps://bot.iamyang.poke.site/api/bot/webhook
Modelanthropic/claude-opus-4.8
Last reply59d ago
HealthOK

Security

The webhook is locked down in three layers. Each one has to pass for the bot to reply, and any layer that fails returns a polite non-reveal - 404 for a wrong path, 401 for a wrong header.

01

Secret header

Telegram is told the webhook's secret_token; every update it sends carries a signed x-telegram-bot-api-secret-token header. The handler compares it with timingSafeEqual before parsing the body.

x-telegram-bot-api-secret-token (token len 66)

02

Shared header

Telegram is told the webhook's secret_token; every update it sends carries an X-Telegram-Bot-Api-Secret-Token header. The handler also compares it with timingSafeEqual as a second layer.

constant-time string match

03

Owner allow-list

The handler only generates AI replies for these Telegram usernames (or numeric IDs set via ALLOWED_USER_IDS). Anyone else gets a short denial.

@iamyang, @i4n16

Commands

Commands the bot recognises when @iamyang messages it.

01

/start

Greet the bot and see a quick intro of what it can do.

02

/auth

Confirm the active owner session and print the allow-list match.

03

/help

List every command and what each one does.

04

/ping

Get an instant latency check - useful when the bot feels slow.

05

/reset

Forget the recent chat context and start fresh in this chat.

06

/status

Show the bot's uptime, the model in use, and the webhook URL.

07

anything else

Free-form chat. The bot will reply with an AI-generated answer.

How it works

  1. 01

    Owner messages the bot

    Only allow-listed Telegram usernames (currently @iamyang) trigger AI replies - everyone else gets a short denial.

  2. 02

    Telegram posts to the secret path

    Telegram POSTs the update to the secret URL with an X-Telegram-Bot-Api-Secret-Token header set at registration time.

  3. 03

    Layered checks pass

    Path matches the secret (404 otherwise). Header matches (401 otherwise). Update is parsed and the user passes the allow-list.

  4. 04

    Bot replies with AI

    The model's reply is sent back to your Telegram chat through a single sendMessage call. The model is anthropic/claude-opus-4.8.

Notes