Run ChatGPT telegram bot

OpenAI API Key
CloudFlare API Key
How to get an account ID?
  1. Log (or create a new account) in to your Cloudflare account (or create a new one).
  2. Copy this ID from the browser URL. Like on this picture: Screenshot of the browser search bar where you can copy Cloudflare account ID
How to get this API key?
  1. Log in to your Cloudflare account (or create a new one).
  2. In the top right corner select "My Profile" in the menu
  3. Select "API Tokens" from the left-hand menu.
  4. Click the "Create Token" button: Screenshot of the Cloudflare interface where you can select token creation
  5. Choose "Edit Cloudflare Workers" from the API token templates: Screenshot of the Cloudflare interface where you can select a token template for workers
  6. For the "Account Resources" dropdown select All accounts. For the "Zone Resources" select All zones: Screenshot of the Cloudflare interface where you need to select all accounts and zones for a token
  7. In the end of the page click on the "Continue to summary" button. Finally press the "Create token" button.

DO NOT FORGET TO SAVE THE TOKEN! It's only visible once.

You have now created a Cloudflare API Token with Workers permissions. Remember, API Token security is very important. Do not share it unnecessarily.
Telegram Bot Api Key

Don't forget to click "Apply & Next step" button after filling the form

How to edit existing bot? Just fill the form again and click "Deploy telegram bot", the bot will be overwritten

Write or Choose System Prompt

The System Prompt consists of instructions for the bot. Note that users will not be able to see this text. This field is optional.

Choose Available Prompt Templates
    Monetization (Optional)

    If you skip the options below, your bot will be used for free

    Number of free messages available to the user.

    This code is used to get access when free messages have run out. Do not forget to save it!

    If you don't set this, the bot will simply ask for the activation code without a payment link.

    Deploy Telegram Bot

    You will be redirected to your bot. If you want to change something after testing of the bot just click “Create Telegram Bot” again

    Succesful deployment!

    Link to your bot${botUsername}

    Run your bot now
    Re-deploy bot
    Your bot will be deployed to cloudflare CDN network which has free plan for 1000 requests / day. see