Claude Prompt Library

30 Claude Prompts That Build Telegram Bots

30 copy-paste prompts

Describe the bot you want and Claude returns a runnable file: python-telegram-bot or Telegraf code with handlers, commands, and error handling. Prompts for alert, reminder, notes, shop, RSS, and group-admin bots. Not "explain how bots work".

In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly — no signup needed. Hand-curated and tested by the AI Academy team.

By Louis Corneloup · Founder, Techpresso
Last updated ·Hand-curated & tested by the AI Academy team

Alert & Notification Bots

5 prompts

Website Uptime / Downtime Alert Bot

1/30

You are a senior Python developer who ships production Telegram bots. <context> I need a Telegram bot that watches one or more URLs and pings me the moment a site goes down or comes back up. Deliver it as a single self-contained, runnable file I can drop on any server. </context> <inputs> - URLs to monitor: [LIST OF URLS] - Check interval: [E.G. EVERY 60 SECONDS] - Where to send alerts: [MY CHAT ID / CHANNEL] - What counts as down: [NON-200 STATUS / TIMEOUT / KEYWORD MISSING] - Extra commands I want: [E.G. /status, /add, /remove] </inputs> <task> Build the bot with python-telegram-bot (v21 async) plus a background job that polls each URL on the interval, tracks state, and sends a formatted alert only on a status change (down or recovered) so I do not get spammed. Include /start, /status (current state of every URL), /add and /remove to manage the watch list at runtime, and latency plus HTTP code in each alert. </task> <constraints> - One runnable .py file; reads BOT_TOKEN from an env var; lists third-party deps in a top comment. - Use JobQueue or asyncio for polling; never block the event loop; wrap requests in timeout and try/except. - Alert on transition only, not every failing check; log every check to stdout. </constraints> <format> Return the full bot code in one code block, then a short note on how to get BOT_TOKEN, run it, and add it as a systemd service. </format>

Generates a runnable uptime-monitor Telegram bot that alerts on down/recovered transitions with runtime commands, ready to use.

💡

Pro tip: Give Claude your real check interval and a keyword that should appear on the page so it can catch soft failures, not just HTTP errors.

Crypto / Stock Price Threshold Alert Bot

2/30

You are a fintech-savvy Python developer building reliable Telegram alert bots. <context> I want a bot that alerts me when an asset crosses a price threshold I set, so I never watch charts manually. Deliver a single runnable file. </context> <inputs> - Assets to track: [E.G. BTC, ETH, AAPL] - Price data source/API: [E.G. COINGECKO / A REST ENDPOINT] - Threshold rules: [E.G. ALERT IF BTC > 80000 OR < 60000] - Poll frequency: [E.G. EVERY 5 MINUTES] - Commands I want: [E.G. /price, /setalert, /myalerts, /delalert] </inputs> <task> Build a python-telegram-bot that fetches prices on a schedule and fires an alert when a user-set threshold is crossed, then disarms that alert until price re-crosses so it does not repeat every tick. /setalert <symbol> <above|below> <price> stores a rule, /myalerts lists them, /delalert removes one, and /price <symbol> returns the current value. Persist alerts in a local SQLite file so they survive restarts. </task> <constraints> - One runnable .py file; BOT_TOKEN and any API key from env vars; deps listed in a header comment. - Handle API errors and rate limits gracefully; never crash the poller on a bad response. - One-shot alerting with re-arm on re-cross; store per-user rules in SQLite. </constraints> <format> Return the full code in one block, then explain how to swap the price source and where the SQLite file lives. </format>

Produces a SQLite-backed price-threshold alert bot with re-arm logic and per-user rules, ready to run.

💡

Pro tip: Tell Claude your exact data API so it writes the correct request and JSON parsing instead of a generic placeholder.

Weather & Severe-Weather Alert Bot

3/30

You are a Python developer who builds location-aware Telegram bots. <context> I want a bot that sends a morning forecast and warns me about severe weather for my saved locations. Deliver a single runnable file. </context> <inputs> - Weather API: [E.G. OPEN-METEO / OPENWEATHER] - Default location(s): [CITY OR LAT/LON] - Daily briefing time: [E.G. 07:00 IN MY TIMEZONE] - Severe conditions to flag: [E.G. STORM, HEAVY RAIN, EXTREME HEAT/COLD] - Commands: [E.G. /now, /setcity, /forecast] </inputs> <task> Build a python-telegram-bot that posts a daily forecast at a set time and checks periodically for severe conditions, sending a warning when thresholds are hit. Support /now (current conditions), /forecast (next 24h), and /setcity to save a location per user. Let each user share their Telegram location to auto-set coordinates. Format the daily briefing with emoji and a clean layout. </task> <constraints> - One runnable .py file; token and API key from env; deps in a header comment. - Use JobQueue for the scheduled briefing and the severe-weather poll; respect each user's timezone. - Degrade gracefully if the weather API is unreachable; never send a blank message. </constraints> <format> Return the full code in one block, then note how to change the schedule and add more severe-condition rules. </format>

Builds a scheduled daily-forecast plus severe-weather alert bot with per-user locations, ready to run.

💡

Pro tip: Point Claude at Open-Meteo if you want a no-API-key option; it will wire the exact endpoint and units for you.

Server / API Health Monitor Alert Bot

4/30

You are an SRE-minded Python developer building ops tooling for Telegram. <context> I run a few services and want a bot that pings my health endpoints and alerts the on-call chat when something degrades. Deliver a single runnable file. </context> <inputs> - Health endpoints: [LIST OF URLS OR TCP HOST:PORT] - Expected healthy response: [E.G. 200 + JSON status:ok] - Alert chat/channel: [ID] - Escalation rule: [E.G. ALERT AFTER 3 FAILED CHECKS] - Commands: [E.G. /health, /mute 1h, /incidents] </inputs> <task> Build a python-telegram-bot that polls each endpoint, requires N consecutive failures before alerting (to avoid flapping), and sends a resolved message on recovery with downtime duration. /health prints a live table, /mute <duration> suppresses alerts temporarily, and /incidents shows the last few events. Track uptime percentage per service in memory and report it in /health. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Consecutive-failure threshold and mute window are configurable near the top of the file. - Non-blocking polling; timeouts on every check; structured log line per check. </constraints> <format> Return the full code in one block, then explain the flap-protection logic and how to add a service without editing handlers. </format>

Generates an on-call health-monitor bot with flap protection, mute, and incident history, ready to run.

💡

Pro tip: Give Claude your real healthy-response shape (status code plus JSON field) so the check is precise, not just a 200 test.

Keyword Mention Alert Bot

5/30

You are a Python developer who builds monitoring bots for Telegram. <context> I want a bot that watches a data source for keywords I care about (brand name, competitor, topic) and pings me with a link when a match appears. Deliver a single runnable file. </context> <inputs> - Source to watch: [E.G. AN RSS/JSON FEED, A SUBREDDIT, HACKER NEWS API] - Keywords/phrases: [LIST] - Match mode: [ANY WORD / EXACT PHRASE / REGEX] - Poll interval: [E.G. EVERY 10 MINUTES] - Commands: [E.G. /watch, /unwatch, /list] </inputs> <task> Build a python-telegram-bot that polls the source, matches new items against the keyword list, and sends a message with the title, matched keyword, and link for each fresh hit only (dedupe by item id/URL). /watch <keyword> and /unwatch <keyword> edit the list live, /list shows current watches. Persist seen-item ids so restarts do not re-alert old matches. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Dedupe with a persisted set of seen ids (SQLite or a JSON file); case-insensitive matching. - Handle empty or malformed feed responses without crashing. </constraints> <format> Return the full code in one block, then explain how to point it at a different source and how the dedupe store works. </format>

Builds a keyword-mention watcher bot that dedupes matches and alerts with links, ready to run.

💡

Pro tip: Tell Claude the exact feed URL and one sample item; it will write parsing that matches the real field names.

XML tags are just the start. Learn the full Claude workflow.

A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.

Start 7-Day Free Trial

Reminder Bots

5 prompts

Natural-Language Reminder Bot

6/30

You are a Python developer who builds friendly, resilient Telegram bots. <context> I want a bot where I type things like "remind me in 2 hours to call the plumber" and it messages me at the right time. Deliver a single runnable file. </context> <inputs> - Phrasings I use: [E.G. "in 20 min", "tomorrow at 9", "every friday"] - My timezone: [E.G. EUROPE/PARIS] - Storage: [SQLITE FILE / IN-MEMORY] - Commands: [E.G. /remind, /list, /cancel] - Snooze option: [YES / NO] </inputs> <task> Build a python-telegram-bot that parses natural-language time from a message, schedules a JobQueue callback, and fires the reminder text at that moment. Support free-text "remind me ..." messages and an explicit /remind command, /list of pending reminders with ids, and /cancel <id>. On fire, include inline Snooze 10m / 1h buttons. Persist reminders in SQLite and reschedule all pending ones on startup so nothing is lost on restart. </task> <constraints> - One runnable .py file; token from env; deps (including any date parser) in a header comment. - Handle unparseable times with a helpful reply, not a crash; respect the user's timezone. - Reschedule persisted reminders on boot; snooze re-inserts a new job. </constraints> <format> Return the full code in one block, then list example phrasings it understands and how to extend the parser. </format>

Produces a natural-language reminder bot with SQLite persistence, snooze buttons, and restart recovery, ready to run.

💡

Pro tip: Name the exact phrasings you actually type; Claude will tune the parser to your habits instead of guessing formats.

Recurring Daily Standup / Habit Reminder Bot

7/30

You are a Python developer building habit and routine bots for Telegram. <context> I want a bot that nudges me (or my team) on a recurring schedule, like a daily standup prompt or a habit check-in, and tracks whether I responded. Deliver a single runnable file. </context> <inputs> - Recurring prompts: [E.G. "WHAT ARE YOU SHIPPING TODAY?" AT 09:30 WEEKDAYS] - Recipients: [ME / A GROUP / PER-USER] - Timezone: [E.G. AMERICA/NEW_YORK] - Tracking: [MARK DONE VIA BUTTON / REPLY] - Commands: [E.G. /add, /schedule, /streak] </inputs> <task> Build a python-telegram-bot that sends recurring prompts on a cron-like schedule (specific days and times) with inline Done / Skip buttons, and records completion. /add creates a recurring reminder (text + days + time), /schedule lists them, and /streak shows the current completion streak per user. Store schedules and check-ins in SQLite and rebuild all jobs on startup. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Use JobQueue.run_daily or a cron helper for weekday/time targeting; per-user timezones. - Persist schedules and completions; recompute streaks from stored data, not memory. </constraints> <format> Return the full code in one block, then explain the schedule format and how streaks are calculated. </format>

Builds a recurring standup/habit reminder bot with Done/Skip tracking and streaks, ready to run.

💡

Pro tip: Ask Claude to make the schedule support weekday-only or specific-days targeting so weekend noise disappears.

Medication / Dose Reminder Bot

8/30

You are a Python developer building careful, dependable reminder bots. <context> I want a bot that reminds me (or a family member) to take medication at set times and logs whether it was taken. Deliver a single runnable file. </context> <inputs> - Medications and times: [E.G. VITAMIN D 08:00, MED X 20:00] - Timezone: [E.G. EUROPE/LONDON] - Confirmation: [TAKEN / SKIPPED BUTTONS] - Missed-dose behavior: [RE-PING AFTER N MINUTES] - Commands: [E.G. /addmed, /meds, /history] </inputs> <task> Build a python-telegram-bot that fires a reminder at each scheduled dose time with Taken / Skip buttons, and if no response arrives, re-pings once after a configurable delay. /addmed <name> <time> adds a schedule, /meds lists today's plan with status, /history exports the last 7 days of adherence. Persist meds and log entries in SQLite; reschedule on startup. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Times are per-user timezone-aware; missed-dose re-ping delay configurable at top. - Never lose a schedule on restart; log each Taken/Skip with a timestamp. - Add a short non-medical disclaimer in /start. </constraints> <format> Return the full code in one block, then explain the adherence log format and how to change the re-ping window. </format>

Generates a medication reminder bot with Taken/Skip logging, missed-dose re-ping, and adherence history, ready to run.

💡

Pro tip: Give Claude the exact dose times up front so the schedule is concrete and the re-ping window fits your routine.

Bill / Subscription Due-Date Reminder Bot

9/30

You are a Python developer building personal-finance helper bots for Telegram. <context> I keep forgetting subscription renewals and bill due dates. I want a bot that reminds me a few days before each one is due. Deliver a single runnable file. </context> <inputs> - Bills/subscriptions: [NAME, AMOUNT, DUE DAY, CADENCE] - Lead time: [E.G. REMIND 3 DAYS BEFORE] - Currency: [E.G. USD] - Timezone: [E.G. ASIA/SINGAPORE] - Commands: [E.G. /addbill, /bills, /paid, /total] </inputs> <task> Build a python-telegram-bot that stores recurring bills and sends a reminder N days before each due date, then again on the day. /addbill <name> <amount> <day> <monthly|yearly> adds one, /bills lists upcoming with days-until-due, /paid <name> marks the current cycle paid, and /total sums monthly commitments. Roll due dates forward automatically after each cycle. Persist everything in SQLite. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Correct date math for monthly and yearly cadence (handle month-end edge cases). - Lead time and "day-of" reminders both fire; reschedule after marking paid. </constraints> <format> Return the full code in one block, then explain the recurrence date math and how to change the lead time. </format>

Builds a bill and subscription reminder bot with lead-time alerts, paid tracking, and monthly totals, ready to run.

💡

Pro tip: List your real cadences (monthly vs yearly) so Claude gets the date-rollover math right, including month-end cases.

Countdown / Event Reminder Bot

10/30

You are a Python developer building event and countdown bots for Telegram. <context> I want a bot that counts down to important events (launches, deadlines, birthdays) and pings me at milestones. Deliver a single runnable file. </context> <inputs> - Events: [NAME + DATE/TIME] - Milestone pings: [E.G. 7 DAYS, 1 DAY, 1 HOUR BEFORE] - Timezone: [E.G. UTC] - Recipients: [ME / A CHANNEL] - Commands: [E.G. /addevent, /events, /next] </inputs> <task> Build a python-telegram-bot that stores events and sends milestone reminders at each configured lead point before the event, plus an "it's happening now" message. /addevent <name> <YYYY-MM-DD HH:MM> creates one, /events lists all with a live time-remaining string, /next shows the closest upcoming event. Support optional yearly repeat for birthdays. Persist in SQLite and reschedule on startup. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Only schedule milestones still in the future; skip past ones on add. - Timezone-aware; format time-remaining as days/hours/minutes. </constraints> <format> Return the full code in one block, then explain the milestone-scheduling logic and how to add custom lead times. </format>

Produces an event countdown bot with milestone pings, live time-remaining, and yearly repeats, ready to run.

💡

Pro tip: Tell Claude which milestones matter (7d/1d/1h) so it only schedules the pings you actually want.

Notes & Save Bots

5 prompts

Quick-Capture Notes Bot

11/30

You are a Python developer who builds fast, minimal Telegram productivity bots. <context> I want a personal bot that turns Telegram into an instant capture inbox: anything I send is saved as a note I can list and search later. Deliver a single runnable file. </context> <inputs> - What to capture: [TEXT / FORWARDED MESSAGES / BOTH] - Storage: [SQLITE FILE] - Search style: [KEYWORD / TAG] - Commands: [E.G. /list, /search, /del, /export] - Tagging convention: [E.G. #hashtags IN THE TEXT] </inputs> <task> Build a python-telegram-bot that saves any plain text message as a timestamped note (auto-extracting #hashtags), and forwarded messages with their source. /list shows recent notes with ids, /search <term> does a case-insensitive full-text search, /del <id> removes one, /export dumps all notes as a Markdown file sent back to me. Store notes in SQLite with id, text, tags, and created-at. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - A bare message (no command) is treated as a new note; commands are not saved as notes. - Full-text search over text and tags; export produces valid downloadable Markdown. </constraints> <format> Return the full code in one block, then explain the notes schema and how to add per-note editing. </format>

Builds a quick-capture notes inbox bot with hashtag tagging, search, and Markdown export, ready to run.

💡

Pro tip: Decide your tag convention (#work, #idea) before running so Claude wires auto-tagging and tag search to match it.

Save-Link / Read-Later Bot

12/30

You are a Python developer building read-later and bookmarking bots for Telegram. <context> I want to forward or paste links to a bot and have it save them with the page title so I can read them later. Deliver a single runnable file. </context> <inputs> - Save trigger: [ANY MESSAGE CONTAINING A URL] - Metadata to fetch: [PAGE TITLE / DESCRIPTION] - Storage: [SQLITE FILE] - Commands: [E.G. /links, /read, /random, /del] - Status model: [UNREAD / READ] </inputs> <task> Build a python-telegram-bot that detects URLs in any message, fetches the page title (and og:description if present), and saves the link as unread with a timestamp. /links lists unread items with ids, /read <id> marks one read, /random surfaces one unread link to read now, /del <id> removes one. Show title + domain in listings, not raw URLs. Persist in SQLite. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Fetch titles with a timeout and a User-Agent; fall back to the domain if the fetch fails. - Extract multiple URLs from one message; dedupe already-saved links. </constraints> <format> Return the full code in one block, then explain the title-fetch fallback and how to add tags to links. </format>

Generates a read-later bot that auto-fetches titles, tracks read/unread, and surfaces random links, ready to run.

💡

Pro tip: Ask Claude to add an og:image thumbnail preview if you want richer listings than plain titles.

Voice-to-Text Note Bot

13/30

You are a Python developer who integrates speech-to-text into Telegram bots. <context> I want to send voice messages to a bot and get back a text transcript that is also saved as a searchable note. Deliver a single runnable file. </context> <inputs> - Transcription service: [E.G. OPENAI WHISPER API / LOCAL WHISPER] - Language(s): [E.G. AUTO-DETECT / EN] - Storage: [SQLITE FILE] - Commands: [E.G. /notes, /search, /del] - Reply style: [TRANSCRIPT ONLY / TRANSCRIPT + SUMMARY] </inputs> <task> Build a python-telegram-bot that, on receiving a voice or audio message, downloads the file, sends it to the transcription service, replies with the transcript, and saves it as a timestamped note. /notes lists saved transcripts, /search <term> searches them, /del <id> removes one. Optionally append a one-line summary of long transcripts. Handle the OGG/Opus download and any format conversion the API needs. </task> <constraints> - One runnable .py file; token and transcription API key from env; deps in a header comment. - Handle the Telegram voice file download and conversion correctly; clean up temp files. - Graceful error if transcription fails; never leave the user without a reply. </constraints> <format> Return the full code in one block, then explain how to swap in local Whisper and where temp audio is stored. </format>

Builds a voice-to-text bot that transcribes voice messages and saves searchable notes, ready to run.

💡

Pro tip: Tell Claude whether you want cloud Whisper (fast setup) or local Whisper (private, no API cost) so it wires the right path.

Tagged Bookmark & Search Bot

14/30

You are a Python developer building organized knowledge-capture bots for Telegram. <context> I want a bot that saves snippets under tags and lets me browse and search by tag, like a personal tagged wiki inside Telegram. Deliver a single runnable file. </context> <inputs> - Save format: [E.G. "#tag some text"] - Storage: [SQLITE FILE] - Browse UX: [INLINE KEYBOARD OF TAGS] - Commands: [E.G. /tags, /tag, /find, /del] - Multi-tag support: [YES / NO] </inputs> <task> Build a python-telegram-bot that saves each message as an entry with one or more #tags parsed from the text. /tags shows all tags as an inline keyboard; tapping a tag lists its entries. /tag <name> lists entries for that tag, /find <term> searches text across all entries, /del <id> removes one. Support entries with multiple tags and show a count per tag. Persist in SQLite with a many-to-many tag relation. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Parse multiple hashtags per message; normalize tag case. - Inline-keyboard tag browsing with callback handlers; paginate long lists. </constraints> <format> Return the full code in one block, then explain the tag schema and how to add tag renaming. </format>

Produces a tagged-bookmark bot with inline tag browsing, multi-tag entries, and search, ready to run.

💡

Pro tip: Ask Claude to paginate tag results so heavily-used tags stay usable once you have hundreds of entries.

Expense / Receipt Logger Bot

15/30

You are a Python developer building lightweight expense-tracking bots for Telegram. <context> I want to log expenses by texting the bot (e.g. "12.50 lunch #food") and get monthly totals by category. Deliver a single runnable file. </context> <inputs> - Entry format: [E.G. "AMOUNT DESCRIPTION #category"] - Currency: [E.G. EUR] - Storage: [SQLITE FILE] - Commands: [E.G. /today, /month, /cat, /export] - Receipt photos: [SAVE PHOTO FILE ID / IGNORE] </inputs> <task> Build a python-telegram-bot that parses an amount, description, and #category from a plain message and logs it with a timestamp. /today and /month show totals and a per-category breakdown, /cat <name> lists entries in a category, /export sends a CSV of the current month. If a photo is attached, save its file_id as the receipt for that expense. Persist in SQLite. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Robust amount parsing (comma/dot decimals); default category if none given. - CSV export is valid and downloadable; totals grouped by category and month. </constraints> <format> Return the full code in one block, then explain the parsing rules and how to add a monthly budget alert. </format>

Builds an expense-logger bot that parses quick entries, tracks category totals, and exports CSV, ready to run.

💡

Pro tip: Fix your entry format up front (amount first, then #category) so parsing is unambiguous and totals stay clean.

Shop & Order Bots

5 prompts

Product Catalog Browse Bot

16/30

You are a Python developer building commerce bots for Telegram. <context> I want a bot that lets customers browse my product catalog with inline buttons: categories, product cards with photos, and a details view. Deliver a single runnable file. </context> <inputs> - Catalog source: [HARDCODED LIST / JSON FILE / API] - Product fields: [NAME, PRICE, DESCRIPTION, PHOTO URL, CATEGORY] - Currency: [E.G. USD] - Browse UX: [CATEGORY MENU -> PRODUCT LIST -> DETAILS] - Commands: [E.G. /shop, /search] </inputs> <task> Build a python-telegram-bot with inline-keyboard navigation: /shop shows a category menu, tapping a category lists products as cards, tapping a product shows its photo, price, and full description with a Back button. Add /search <term> to find products by name. Load the catalog from a JSON file so it can be edited without touching code. Use callback data routing and edit messages in place for smooth navigation. </task> <constraints> - One runnable .py file; token from env; catalog JSON path and deps in a header comment. - Clean callback_data routing; edit the same message on navigation rather than spamming new ones. - Send product photos by URL or file_id; handle missing images gracefully. </constraints> <format> Return the full code in one block plus a small sample catalog.json, then explain the callback routing scheme. </format>

Generates an inline-keyboard catalog browse bot with categories, product cards, and search, ready to run.

💡

Pro tip: Give Claude your real product fields so the JSON schema and cards match your data, not a generic demo.

Food Ordering Cart & Checkout Bot

17/30

You are a Python developer building ordering bots for restaurants and shops on Telegram. <context> I want a bot where customers browse a menu, add items to a cart, adjust quantities, and place an order that gets sent to me. Deliver a single runnable file. </context> <inputs> - Menu: [ITEMS WITH NAME, PRICE, CATEGORY] - Currency: [E.G. GBP] - Order destination: [MY CHAT ID / A GROUP] - Fields to collect: [NAME, ADDRESS/TABLE, PHONE, NOTES] - Commands: [E.G. /menu, /cart, /checkout] </inputs> <task> Build a python-telegram-bot with an inline menu where each item has Add / +/- quantity buttons that build a per-user cart. /cart shows the current cart with a running total and Remove buttons, /checkout collects delivery details via a short conversation, confirms the order summary, and forwards the full order to the order-destination chat with a generated order id. Keep carts per user in memory (or SQLite) until checkout. </task> <constraints> - One runnable .py file; token from env; menu and deps in a header comment. - Use ConversationHandler for the checkout steps; validate required fields. - Accurate cart math; clear order summary; unique order id per order. </constraints> <format> Return the full code in one block, then explain the cart state model and how to persist carts across restarts. </format>

Builds a menu-to-cart-to-checkout ordering bot that forwards completed orders with an order id, ready to run.

💡

Pro tip: Tell Claude exactly which checkout fields you need; it will build the conversation steps and validation to match.

Order Status Tracking Bot

18/30

You are a Python developer building customer-service bots for Telegram. <context> I want a bot where customers enter an order number and get its current status, and where I (as admin) can update statuses. Deliver a single runnable file. </context> <inputs> - Order data source: [SQLITE / A JSON FILE / API] - Status stages: [E.G. RECEIVED, PREPARING, SHIPPED, DELIVERED] - Admin chat id(s): [WHO CAN UPDATE] - Lookup key: [ORDER ID / PHONE] - Commands: [E.G. /track, /setstatus (admin)] </inputs> <task> Build a python-telegram-bot where /track <order_id> returns the order's current stage, timestamp of last update, and a simple progress indicator. Admins can run /setstatus <order_id> <stage> to advance an order, which optionally notifies the customer's chat if it is on file. Reject unknown order ids with a helpful message and gate admin commands to allowed chat ids. Persist orders and status history in SQLite. </task> <constraints> - One runnable .py file; token from env; admin ids and deps in a header comment. - Admin-only commands enforced by chat id; validate stage against the allowed list. - Store status history with timestamps; customer notification is optional and safe if no chat is linked. </constraints> <format> Return the full code in one block, then explain the order schema and how to auto-import orders from an API. </format>

Produces an order-tracking bot with customer lookup, admin status updates, and history, ready to run.

💡

Pro tip: List your exact status stages so Claude validates transitions instead of accepting any free-text status.

Booking / Appointment Bot

19/30

You are a Python developer building scheduling bots for Telegram. <context> I want a bot that shows my available time slots and lets customers book one, then confirms and notifies me. Deliver a single runnable file. </context> <inputs> - Services offered: [NAME + DURATION] - Working hours: [E.G. MON-FRI 09:00-17:00] - Slot length: [E.G. 30 MIN] - Timezone: [E.G. EUROPE/BERLIN] - Commands: [E.G. /book, /mybookings, /cancel, /slots (admin)] </inputs> <task> Build a python-telegram-bot where /book walks the user through picking a service, a date, and an open slot via inline keyboards, then stores the booking and confirms it, notifying the owner chat. It must hide already-taken slots and slots outside working hours. /mybookings lists a user's upcoming bookings, /cancel frees a slot. Persist bookings in SQLite and prevent double-booking with a uniqueness check. </task> <constraints> - One runnable .py file; token from env; hours, slot length, and deps in a header comment. - Generate slots from working hours minus existing bookings; timezone-aware. - Atomic booking to prevent races/double-booking; clear confirmation message. </constraints> <format> Return the full code in one block, then explain slot generation and how to add buffer time between appointments. </format>

Builds an appointment-booking bot with slot selection, double-booking prevention, and owner notifications, ready to run.

💡

Pro tip: Give Claude your real working hours and slot length so the generated availability matches your calendar exactly.

Telegram Payments Checkout Bot

20/30

You are a Python developer experienced with the Telegram Payments API. <context> I want a bot that sells a product or service and takes real payment inside Telegram using the Bot Payments API and a provider token. Deliver a single runnable file. </context> <inputs> - Provider token: [FROM BOTFATHER / STRIPE VIA TELEGRAM] - Products: [NAME, DESCRIPTION, PRICE] - Currency: [E.G. USD] - Post-payment action: [DELIVER A LINK / CODE / CONFIRMATION] - Commands: [E.G. /buy, /orders] </inputs> <task> Build a python-telegram-bot that sends an invoice via send_invoice when the user picks a product, correctly answers the PreCheckoutQuery, and on successful_payment delivers the post-payment item and records the order. Handle the full payment lifecycle: invoice -> pre-checkout validation -> successful_payment handler. /orders lists the user's paid orders. Persist orders in SQLite with the Telegram payment charge id. </task> <constraints> - One runnable .py file; bot token and provider token from env; deps in a header comment. - Implement PreCheckoutQueryHandler (must answer within seconds) and a successful_payment message handler. - Store the telegram_payment_charge_id; never deliver goods before successful_payment fires. </constraints> <format> Return the full code in one block, then explain how to get a provider token from BotFather and how to test payments in test mode. </format>

Generates a real Telegram Payments checkout bot handling invoice, pre-checkout, and delivery, ready to run.

💡

Pro tip: Ask Claude to include the BotFather steps for connecting a payment provider; that setup is where most people get stuck.

RSS & Content Bots

5 prompts

RSS Feed to Channel Poster Bot

21/30

You are a Python developer building content-automation bots for Telegram. <context> I want a bot that watches RSS feeds and auto-posts new items to my Telegram channel, formatted cleanly. Deliver a single runnable file. </context> <inputs> - Feeds: [LIST OF RSS URLS] - Target channel: [@CHANNEL OR ID] - Poll interval: [E.G. EVERY 15 MINUTES] - Post format: [TITLE, SUMMARY, LINK] - Commands: [E.G. /addfeed, /feeds, /rmfeed (admin)] </inputs> <task> Build a python-telegram-bot that polls each RSS feed on the interval, detects new entries (dedupe by guid/link), and posts them to the channel with a formatted title, trimmed summary, and link. Admin-only /addfeed <url>, /feeds, and /rmfeed <url> manage the feed list at runtime. Persist seen-entry ids and the feed list in SQLite so restarts do not repost old items. Respect Telegram message length limits. </task> <constraints> - One runnable .py file; token from env; admin ids and deps (incl. a feed parser) in a header comment. - Dedupe with a persisted seen-set; skip items already posted before first run of a new feed. - Handle malformed feeds and network errors without crashing the poller. </constraints> <format> Return the full code in one block, then explain the dedupe strategy and how to add per-feed formatting. </format>

Builds an RSS-to-channel auto-poster bot with dedupe, runtime feed management, and clean formatting, ready to run.

💡

Pro tip: Have Claude mark all existing items as seen on a feed's first poll so adding a feed does not dump its whole backlog.

YouTube New-Video Notifier Bot

22/30

You are a Python developer building creator-notification bots for Telegram. <context> I want a bot that alerts me (or a channel) whenever specific YouTube channels upload a new video. Deliver a single runnable file. </context> <inputs> - YouTube channels to watch: [CHANNEL IDS OR HANDLES] - Data method: [YOUTUBE RSS FEED PER CHANNEL / DATA API] - Destination: [MY CHAT / A CHANNEL] - Poll interval: [E.G. EVERY 20 MINUTES] - Commands: [E.G. /watch, /list, /unwatch] </inputs> <task> Build a python-telegram-bot that checks each watched YouTube channel's uploads feed and posts a message with the video title, channel name, and link for new uploads only. Prefer the per-channel RSS feed (no API key needed). /watch <channel>, /unwatch <channel>, and /list manage the watch list live. Persist watched channels and last-seen video ids in SQLite so restarts do not re-alert. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Resolve handles to channel ids if needed; dedupe by video id. - Never re-post the backlog when a channel is first added; handle empty feeds. </constraints> <format> Return the full code in one block, then explain how to find a channel id and how to switch to the Data API for richer info. </format>

Produces a YouTube upload-notifier bot using per-channel RSS with dedupe and live watch management, ready to run.

💡

Pro tip: Use the RSS method Claude generates first (no API key); only move to the Data API if you need view counts or thumbnails.

Daily News Digest Bot

23/30

You are a Python developer building scheduled digest bots for Telegram. <context> I want a bot that collects headlines from a few sources and sends me one clean digest at a set time each day. Deliver a single runnable file. </context> <inputs> - Sources: [RSS FEEDS / A NEWS API] - Topics/keywords to prioritize: [OPTIONAL LIST] - Digest time: [E.G. 08:00 MY TIMEZONE] - Items per digest: [E.G. TOP 10] - Commands: [E.G. /now, /sources, /settime] </inputs> <task> Build a python-telegram-bot that, at the scheduled time, pulls the latest items from all sources, dedupes across feeds, optionally boosts items matching my keywords to the top, and sends a single numbered digest with title + link per item. /now sends the digest on demand, /sources lists feeds, /settime <HH:MM> changes the schedule. Use JobQueue for the daily send and persist settings in SQLite. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Cross-feed dedupe by normalized title/URL; cap the digest at the configured item count. - Timezone-aware daily schedule; degrade gracefully if a source is down. </constraints> <format> Return the full code in one block, then explain the ranking/dedupe logic and how to add a source. </format>

Builds a scheduled daily news-digest bot with cross-feed dedupe and keyword boosting, ready to run.

💡

Pro tip: Give Claude a few priority keywords so your digest floats the topics you care about to the top of the list.

Reddit / Subreddit Watcher Bot

24/30

You are a Python developer building community-monitoring bots for Telegram. <context> I want a bot that watches subreddits and pings me when new posts match my filters (keyword, min upvotes, flair). Deliver a single runnable file. </context> <inputs> - Subreddits: [LIST] - Filters: [KEYWORDS, MIN SCORE, FLAIR] - Access method: [REDDIT JSON ENDPOINT / PRAW WITH API KEYS] - Poll interval: [E.G. EVERY 10 MINUTES] - Commands: [E.G. /watch, /filters, /list] </inputs> <task> Build a python-telegram-bot that polls the newest posts of each subreddit, applies the filters, and sends matching posts with title, subreddit, score, and permalink. Use the public .json endpoint by default (no keys) with a proper User-Agent, or PRAW if keys are provided. /watch <subreddit>, /list, and /filters manage config at runtime. Dedupe by post id in SQLite so restarts do not re-alert. </task> <constraints> - One runnable .py file; token from env; optional Reddit keys from env; deps in a header comment. - Set a descriptive User-Agent; respect Reddit rate limits with backoff. - Filter by keyword, min score, and flair; dedupe by post id. </constraints> <format> Return the full code in one block, then explain the JSON-vs-PRAW toggle and how to tune the filters. </format>

Generates a subreddit watcher bot with keyword/score/flair filters and post dedupe, ready to run.

💡

Pro tip: Set a min-upvotes filter so Claude's bot only pings you on posts that already have traction, cutting the noise.

Podcast New-Episode Notifier Bot

25/30

You are a Python developer building media-notification bots for Telegram. <context> I want a bot that watches podcast RSS feeds and notifies me when a new episode drops, with the title and listen link. Deliver a single runnable file. </context> <inputs> - Podcast feeds: [LIST OF RSS URLS] - Destination: [MY CHAT / A CHANNEL] - Poll interval: [E.G. HOURLY] - Info to include: [TITLE, DURATION, PUBLISH DATE, LINK] - Commands: [E.G. /addpod, /pods, /rmpod] </inputs> <task> Build a python-telegram-bot that polls each podcast RSS feed, detects new episodes (dedupe by guid), and posts the episode title, publish date, duration, and audio/listen link. /addpod <url>, /pods, and /rmpod <url> manage the feed list live. Optionally send the episode's cover image. Persist feeds and seen-episode guids in SQLite so restarts do not re-notify old episodes. </task> <constraints> - One runnable .py file; token from env; deps (incl. a feed parser) in a header comment. - Parse iTunes podcast RSS fields (duration, enclosure URL); dedupe by guid. - Mark existing episodes seen on a feed's first poll; handle malformed feeds. </constraints> <format> Return the full code in one block, then explain the RSS enclosure parsing and how to add episode summaries. </format>

Builds a podcast episode-notifier bot that parses iTunes RSS, dedupes, and posts listen links, ready to run.

💡

Pro tip: Ask Claude to include the episode's enclosure URL so tapping the notification jumps straight to the audio.

Most people use 10% of Claude. Tutorials unlock the rest.

AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.

Start Your Free Trial

Group-Admin Bots

5 prompts

Welcome & Rules Onboarding Bot

26/30

You are a Python developer building Telegram group-management bots. <context> I run a Telegram group and want a bot that greets new members, posts the rules, and points them to key resources. Deliver a single runnable file. </context> <inputs> - Welcome message: [TEXT, CAN USE {name} AND {group}] - Rules: [BULLET LIST] - Useful links: [E.G. FAQ, WEBSITE, PINNED GUIDE] - Cleanup: [DELETE WELCOME AFTER N SECONDS? YES/NO] - Commands: [E.G. /rules, /setwelcome (admin)] </inputs> <task> Build a python-telegram-bot that detects new_chat_members, sends a personalized welcome with the member's name and inline buttons linking to rules and resources, and optionally deletes the welcome after a delay to keep chat clean. /rules posts the rules on demand; admin-only /setwelcome updates the welcome text at runtime. Store per-group welcome text and rules in SQLite so one bot can serve multiple groups. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Handle new_chat_members updates; personalize with the member's first name safely. - Admin-only config commands (check chat admin status via get_chat_member); per-group settings. </constraints> <format> Return the full code in one block, then explain how it checks admin status and how to support multiple groups. </format>

Builds a new-member welcome bot with rules, resource buttons, and admin-editable text, ready to run.

💡

Pro tip: Ask Claude to check admin status with get_chat_member so only real admins can change the welcome, not any member.

Anti-Spam / Flood & Link Filter Bot

27/30

You are a Python developer building moderation bots for busy Telegram groups. <context> My group gets spam, message floods, and unsolicited links. I want a bot that auto-removes them and warns offenders. Deliver a single runnable file. </context> <inputs> - Flood rule: [E.G. MORE THAN 5 MSGS IN 10 SECONDS] - Link policy: [BLOCK ALL LINKS / ALLOWLIST DOMAINS] - Banned words: [LIST] - Action ladder: [WARN -> MUTE -> BAN] - Commands: [E.G. /allow, /ban, /settings (admin)] </inputs> <task> Build a python-telegram-bot that detects flooding (rate per user), messages with disallowed links, and banned words, deletes the offending message, and escalates through warn -> temporary mute -> ban based on repeat offenses. Track per-user warning counts in SQLite. Admins bypass all filters and can /allow <domain>, /ban <reply>, and view /settings. Never act on admins; log every action. </task> <constraints> - One runnable .py file; token from env; thresholds and deps in a header comment. - Exempt group admins from filters; use restrict_chat_member for mutes and ban_chat_member for bans. - Sliding-window flood detection; case-insensitive word matching; domain allowlist for links. </constraints> <format> Return the full code in one block, then explain the escalation ladder and how to tune the flood window. </format>

Generates an anti-spam moderation bot with flood detection, link/word filters, and a warn-mute-ban ladder, ready to run.

💡

Pro tip: Start with a domain allowlist rather than blocking all links so legitimate members can still share your own resources.

Captcha / New-Member Verification Bot

28/30

You are a Python developer building bot-defense tools for Telegram groups. <context> Bot accounts keep joining my group. I want a captcha bot that restricts new members until they prove they are human. Deliver a single runnable file. </context> <inputs> - Captcha type: [BUTTON TAP / SIMPLE MATH / EMOJI PICK] - Time limit: [E.G. 60 SECONDS TO SOLVE] - Fail action: [KICK / BAN] - Restricted state: [MUTE UNTIL SOLVED] - Commands: [E.G. /verify (fallback), /settings (admin)] </inputs> <task> Build a python-telegram-bot that, on a new member joining, mutes them (restrict_chat_member with no send permissions) and posts a captcha with inline buttons only the joining user can solve. On success, restore full permissions and delete the captcha; on timeout or wrong answer, kick or ban per the fail action. Handle the timer with JobQueue, ensure only the target user's taps count, and clean up messages. Persist per-group settings in SQLite. </task> <constraints> - One runnable .py file; token from env; time limit and deps in a header comment. - Correctly restrict then restore ChatPermissions; only the joining user's callback solves it. - Timeout via JobQueue triggers the fail action; delete captcha and system join messages. </constraints> <format> Return the full code in one block, then explain the permission restrict/restore flow and how to change the captcha type. </format>

Builds a new-member captcha bot that mutes joiners until verified and kicks failures, ready to run.

💡

Pro tip: Keep the captcha to a single button tap first; math captchas block bots but also annoy real users on mobile.

Warn / Mute / Ban Moderation Bot

29/30

You are a Python developer building admin command tools for Telegram groups. <context> I want a moderation bot that gives my admins reply-based commands to warn, mute, and ban users, with a tracked warning system. Deliver a single runnable file. </context> <inputs> - Warn limit before action: [E.G. 3 WARNINGS = MUTE] - Default mute duration: [E.G. 1 HOUR] - Who can moderate: [GROUP ADMINS ONLY] - Commands: [E.G. /warn, /unwarn, /mute, /unmute, /ban, /kick, /warns] - Reason logging: [YES / NO] </inputs> <task> Build a python-telegram-bot where admins reply to a user's message with /warn (with optional reason) to add a warning; when warnings hit the limit, auto-mute for the default duration. Add /mute <duration>, /unmute, /ban, /kick, /unwarn, and /warns <reply> to show a user's warning count and reasons. Enforce admin-only usage via get_chat_member, store warnings and mod-log entries in SQLite, and confirm each action in-chat. </task> <constraints> - One runnable .py file; token from env; warn limit, mute duration, and deps in a header comment. - All commands admin-gated; parse durations like 30m/1h/1d; use restrict/ban/unban APIs correctly. - Auto-escalate at the warn limit; never let a command act on another admin. </constraints> <format> Return the full code in one block, then explain the warning schema and how to add a temp-ban with auto-unban. </format>

Produces a reply-based moderation bot with tracked warnings, auto-escalation, and mute/ban commands, ready to run.

💡

Pro tip: Ask Claude to parse durations like 30m/1h/1d so /mute reads naturally instead of forcing raw seconds.

Scheduled Announcement & Pinned-Message Bot

30/30

You are a Python developer building group-communication bots for Telegram. <context> I want a bot that posts scheduled announcements to my group and can auto-pin them, so recurring notices go out without me remembering. Deliver a single runnable file. </context> <inputs> - Announcements: [TEXT + WHEN, E.G. "MONDAY 09:00 STANDUP"] - Auto-pin: [YES / NO, UNPIN AFTER N HOURS?] - Target group(s): [ID(S)] - Timezone: [E.G. UTC] - Commands: [E.G. /schedule, /announcements, /cancel, /now (admin)] </inputs> <task> Build a python-telegram-bot where admins schedule one-off or recurring announcements (specific days/times) that the bot posts to the group and optionally pins, then unpins after a set duration. /schedule creates one, /announcements lists them, /cancel <id> removes one, /now <id> posts immediately. Use JobQueue for timing, persist schedules in SQLite, and rebuild all jobs on startup. Gate all commands to admins. </task> <constraints> - One runnable .py file; token from env; deps in a header comment. - Support recurring (weekday/time) and one-off schedules; timezone-aware. - Admin-gated; pin/unpin via the correct API calls; reschedule persisted jobs on boot. </constraints> <format> Return the full code in one block, then explain the schedule format and how to add per-announcement pin rules. </format>

Builds a scheduled-announcement bot with auto-pin/unpin, recurring timing, and restart recovery, ready to run.

💡

Pro tip: Have Claude auto-unpin after a set window so your pinned message doesn't get stale between recurring posts.

Frequently Asked Questions

A single runnable file, not a lecture. Most prompts return commented python-telegram-bot (async, v21) code with the handlers, commands, JobQueue scheduling, and error handling wired up, plus a short note on getting a token from BotFather and running it. You can ask for Telegraf (Node.js) instead if you prefer JavaScript.
You need enough to create a bot with BotFather, set your token as an env var, install the listed dependencies, and run one file. The prompts ask Claude to include those exact run steps. If you get an error, paste it back and Claude will fix it — you rarely need to read the code yourself.
The prompts default to python-telegram-bot because it is the most common and best-documented library. If your stack is Node.js, add "use Telegraf in TypeScript" to any prompt and Claude will translate the same structure. Both handle commands, inline keyboards, and scheduling well.
Message @BotFather in Telegram, send /newbot, pick a name and username, and it returns a token. Set it as the BOT_TOKEN environment variable the code reads. For payment or admin bots you may need extra setup (a provider token, or making the bot a group admin), and the prompts tell Claude to include those steps.
Only if you host it. The generated code runs anywhere Python does — a cheap VPS, a Raspberry Pi, or a container. Ask Claude to add the systemd service or Dockerfile and it will, so the bot stays up and restarts automatically. Reminder and alert bots persist their data to SQLite so nothing is lost on restart.
Yes. Start from the closest prompt, then tell Claude to merge in the extra commands and handlers you want. Because each bot is a single self-contained file with clear command routing, adding a feature is usually a matter of describing the new command and letting Claude splice it in.

Prompts are the starting line. Tutorials are the finish.

A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.

7-day free trial. Cancel anytime.