SUBTC — Building Telegram Bots with Bitcoin Execution

permalink SUBTC
#bitcoin#bots#building#subtc#telegram

The SUBTC Protocol provides an ideal foundation for building Telegram bots, especially for automation and AI-driven systems.


  1. Core Idea

Telegram Bot = User Interface<br>SUBTC = Execution Layer

Flow:

User → Telegram Bot → SUBTC API → Bitcoin Network


  1. Capabilities

Using SUBTC inside a Telegram bot enables:

  • Create a wallet per user (wallet_create)
  • Generate receiving addresses (wallet_receive)
  • Check balances (wallet_balance)
  • Send BTC (wallet_send)
  • Wait for incoming payments (wallet_wait_event)

  1. Example Flow
  1. User sends /start
  1. Bot creates a wallet
  1. Bot returns a receiving address
  1. User sends BTC
  1. Bot monitors the transaction
  1. On confirmation → execute action (service, product, access)

  1. Why SUBTC Fits Telegram Bots

No UI Required:

  • No website needed
  • No frontend
  • Telegram acts as the interface

No RPC:

  • No Bitcoin node required
  • No infrastructure complexity

CLI / API First:

  • Easy integration with Python and Golang
  • Ideal for scripts and automation

AI Agent Ready:

  • Bots can become intelligent
  • Execute trading strategies
  • Manage wallets autonomously

  1. Real Use Cases

Payment Bot:

  • Subscriptions
  • Donations
  • Selling digital services

Game Bot:

  • Player vs Player
  • Users send SATs
  • Winner receives rewards

Trading Bot:

  • Monitor price feeds
  • Execute buy/sell logic
  • Send alerts

Invoice Bot:

  • Generate invoices
  • Wait for payments
  • Unlock services

  1. Security Notes
  • Do not store SUBTC-KEY inside bot code → use .env
  • Use Docker for isolation
  • Withdraw funds daily to a cold wallet
  • Treat the bot wallet as a temporary hot wallet

  1. AI Integration

You can connect your bot with:

  • ChatGPT
  • Claude
  • Any AI model

Result:

An intelligent agent that:

  • Understands
  • Decides
  • Executes via SUBTC

Conclusion

SUBTC + Telegram creates a powerful environment for building automated Bitcoin systems without complexity:

  • No node
  • No RPC
  • No UI

Only code and your ideas.