Skip to content
Docs
Modules Constructor

Modules Constructor

The guide to the Multogram Modules Constructor: how to build your own Telegram automation module — a scenario from ready-made actions, a settings form from resources, a test and a build into an .agm file. How a module is structured, key concepts and the workflow.

The Modules Constructor is a visual editor in which you build your own automation module: a scenario from ready-made actions (Telegram, files, network, data) and a settings form the user fills in before running. A finished module is a single .agm file: it is installed and run on the Modules tab, like a built-in mode.

The constructor opens from the Modules Constructor tab with the Create Module button and is available on the Pro and Max plans — see Modules Constructor in the list of modes. No programming is needed: the scenario is built from blocks, and code is written only where ready-made actions are not enough.

The Modules Constructor window
The constructor window: actions on the left, the scenario on the canvas, the module's resources on the right.

What a module consists of

PartWhat it isWhere in the constructor
ScenarioThe module's logic: functions made of actions that run top to bottom. Work starts with the Main functionThe canvas and the Actions panel
Settings formThe fields the user fills in before running. It is built from resources automaticallyThe Resources panel
Module dataName, description, author, version and cover — what is visible on the module's cardThe Build module window
RequirementsThe Multogram modes the module needs. Determined from the scenario's actionsThe Build module window

Key concepts

ConceptWhat it means
ActionOne step of the scenario: send a message, read a file, make a request
FunctionA named set of actions. Main is the module's entry point
Variable [[name]]A value the scenario computes by itself as it works
Resource {{name}}A setting the module's user sets. The form is built from resources
ThreadOne line of execution. A module runs in several threads at once
Project .agmpThe editable source of a module
Module .agmA sealed build for installing and running

Workflow

Create a module. The constructor opens with a ready template: an account sign-in function and an account picker field — see Your first module.

Build the scenario from actions on the canvas — see Canvas and actions and Conditions, loops and errors.

Move the settings into resources — everything the user should choose: targets, texts, delays, files. See Resources and the module form.

Check it with a test right in the constructor — see Testing and debugging.

Save the project and build the module .agm — see Saving and building.

Sections

Updated

CookiesPrivacy Policy

We use essential cookies to run this site. With your consent, we will also use analytics cookies to improve it and marketing cookies to credit whoever referred you. You can change your choice at any time.