Sign in to BitHut

Your projects, their status and secrets, and how to connect your AI.

Continue with Google Continue with GitHub Continue with email

If you are new, BitHut creates your account on the first sign-in.

New to BitHut? Already have an account?

Templates

Telegram bot

This template gives you a Telegram bot that does what you describe: answers customers, takes bookings, sends reminders, looks things up. It runs on BitHut all the time, also when your laptop is closed. Site page: Telegram bot.

What to say to your AI

Put a Telegram bot on BitHut using the telegram-bot template. First ask me what the bot should do, then help me create it in Telegram.

What you need

  • A bot token from @BotFather in Telegram. In Telegram, open @BotFather, send /newbot and choose a name. BotFather replies with the token. Your AI explains the steps if you have not done it before.
  • What the bot should do, in your own words, and who will use it.
  • The data it works with, only if it needs any, for example a Google Sheet.

The token never goes into the chat. Your AI gives you a link to the BitHut cabinet, and you paste the token there.

What BitHut sets up

  • The bot runs as a background process: it has no address and keeps reading messages all the time. If it stops, it starts again.
  • A disk for what the bot remembers. It survives restarts and updates.
  • A safe place for the token, apart from the code.
  • Logs, so you can see what happened when something goes wrong.

After the deploy, send /start to your bot in Telegram to try it.

Optional settings

  • Only certain people. Anyone who finds the bot can write to it. To keep strangers out, your AI sets a list of allowed chats.
  • A Google Sheet. If the bot reads a sheet, you either connect Google in the BitHut cabinet, and the sheet stays private, or share the sheet as “Anyone with the link: Viewer”. In the second case anyone with the link can read it.

How to change it

Tell your AI what the bot should do differently. It changes the code and deploys a new version. What the bot remembers stays.

Limits

  • One bot per project. A second bot is a second project.
  • Only one copy of a bot can read its messages. If the bot already runs on your computer, stop it there.
  • The bot answers when someone writes to it. To send messages at set times, use Daily report to Telegram.
  • Telegram allows up to 4096 characters in one message.
  • Files people send to the bot count toward your plan’s disk.