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
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.
Set the approval modes for tool requests (e.g. Always require, Never require, or customized for specific tools).
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.
Click the 3 dots in the top right corner and proceed to publish the prompt
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).
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.
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.