HomeTelegram

Guide: How to integrate Openapi services on Telegram with ChatGPT (OpenAI)

Imagine being able to access company data, verify emails and phone numbers, send SMS messages, and use digital services simply by sending a message from your smartphone.

With the integration between OpenAI, the MCP protocol, and Openapi services, all this is already possible — directly on Telegram. No more searching across multiple portals, no code to write: just chat with your dedicated bot to get real-time answers based on official and up-to-date data.

This guide will provide you with all the instructions you need to start using Openapi services directly from your Telegram chat, leveraging the power of OpenAI’s large language models (LLMs).

The integration between ChatGPT, Openapi’s API Marketplace, and Telegram allows you to combine the flexibility of natural language with access to constantly updated data, all within a messaging app you use every day.

By following the steps described below, you will be able to:

  • Obtain the OpenAI API Key
  • Add a Prompt in OpenAI, add the Openapi MCP, and obtain the Prompt ID
  • Create a custom bot on Telegram
  • Connect everything through the setup interface
  • Query Openapi APIs by writing a simple message in chat

1. Obtain an OpenAI API Key


Log in to your account on OpenAI Platform

Make sure you have credit on your OpenAI account, otherwise the APIs will not respond.

telegram

Go to the API Keys section

telegram

Click on Create New Secret Key. Enter a name for the key, select the project, and define the permissions (recommended: All).

telegram

Copy the value of the API Key and save it in a secure place. You will need it shortly.

2. Create and Configure Your Prompt on OpenAI

Go to the Chat section

telegram

Configure the Prompt by selecting the LLM model you prefer and defining the output characteristics.

telegram

Click on Add Tools, then select Server to add the MCP (Model Context Protocol) by Openapi.

telegram

Configure the MCP server by entering the following values:
  • URL: https://mcp.openapi.com
  • Label and description: Choose a name and description of your choice
  • Authentication: Set the type to Access Token / API Key and enter the token code generated in your Openapi account.

telegram

Set the approval modes for tool requests (e.g. Always require, Never require, or customized for specific tools).

telegram

Select the Openapi services you intend to use (referring to the specific endpoints).

Note: Make sure the services are enabled and that there is sufficient credit on your Openapi account.

telegram

Click the 3 dots in the top right corner and proceed to publish the prompt

telegram

Copy the Prompt ID generated immediately after publishing (you can retrieve it at any time by clicking the three dots in the top right corner again).

telegram

3. Generate the token for your Telegram Bot

  • 1. Launch BotFather (the official bot for creating and managing bots on Telegram) by clicking this link: https://telegram.me/BotFather
    Once launched, you will be able to view all the instructions for creating your BOT
  • 2. Start the chat and type the command /newbot.
  • 3. Choose a visible name for your Bot
  • 4. Choose a unique username for the Bot (remember it must end with the word bot)
  • 5. Copy the HTTP API Token that BotFather will provide you.

telegram

4. Connect OpenAI to Telegram and launch the Bot

Now that you have retrieved all the necessary data (OpenAI API Key, Prompt ID, and Telegram Token), you can activate the connection.

1. Access the dedicated interface: https://chat.mcp.openapi.com/

telegram

2. Enter the required data in the respective fields.

telegram

3. Click the "CREATE MY BOT LINK" button.

You will be redirected directly to Telegram, where you can start your bot and begin querying Openapi services simply by writing in chat!

Troubleshooting


If something is not working, check that you have correctly completed these steps:

  • Have you activated the services you want to use in the Openapi Console?
  • Have you generated the Openapi token and correctly associated it via MCP?
  • Have you entered all the correct data (API Key, Prompt ID, Telegram Token) in the bot configuration panel?
  • Is your credit (both on OpenAI and Openapi) sufficient?

If you experience any difficulties, our team is available contact us for support!

Now It’s Your Turn!

Have you already tried Openapi services on Telegram? Tell us about your experience, and don’t hesitate to write to us!