Skip to main content

API Modules: General info

API Modules connected in your bot help your bot created on the @MenuBuilderBot constructor interact with external projects and services via the API of these projects. API Modules are special scripts pre-configured to work with the API of specific Projects. Connecting such a Module will allow your bot to access the API of a specific Project - send and receive data from these projects and services. The received data can be shown to users or saved in variables to interact with it, just as you interact with other variables.

The functionality of API Modules are AT THE DEVELOPMENT STAGE - the work on development of the functionality is still in progress - based on YOUR FEEDBACK as well!

FOR DEVELOPERS: If you create your own small but useful scripts, you can monetize them through the API Modules Store. Add the ability to work via API with your script and contact MenuBuilderBot support.

Let's look at the basic scheme of interaction with an external service using the Modules API.

❖ Basic scheme of API Module work with External Service

There is a @MenuBuilderBot system for creating bots in Telegram and a certain External Project providing the necessary information or other data.

API-pictures1.png

External Project has its own services and API for interacting with them from the Internet.

API-pictures2.png

You have created a bot using @MenuBuilderBot constructor and want to interact with any of the External Project services.

API-pictures3.png

In order to work with External Projects, the «API Modules» were added to the constructor. Each API Module is created in accordance with the API documentation for each specific External Project.

This approach will allow you, without going into the technical details of interaction, to access data from External Projects in the simplest possible way.

API-pictures4.png

You can connect the necessary Modules to get the ability to access the API of the Projects you need.

API-pictures5.png

If an «API Module» has not been created for the project you are interested in, you can contact support and suggest adding it.