Logic and data
Multogram Modules Constructor modules for logic and data processing: Logic, String, Array, JSON, Math, Regex, DateTime, Encode, Crypto, Identity — all actions.
Modules that decide what to run and prepare data: texts, lists, numbers, dates.
Logic
The basis of any scenario: conditions, loops, error handling, calling functions. How to write conditions is in Conditions, loops and errors.
| Job | Actions |
|---|---|
| Branching and loops | IF Condition, FOR Loop, FOREACH Loop, WHILE Loop, Break, Continue |
| Errors | Try-Catch — the error text is in [[_error]] |
| Functions | Call Function, Return |
| Variables | Set Variable, Set Global Variable, Increment Variable, Increment Global Variable |
| Flow | Delay, End Thread, Stop Scenario |
String
Generate String, Expand Pattern, Get String Length, Concatenate Strings, Split String, Replace Substring, Trim String, Change Case, Get Substring, Check Contains, Parse String, Compare Strings, Check Empty String.
Expand Pattern expands a string generator pattern into ready text — this is how message texts come out different.
Array
Create Array, Get Array Length, Get Element by Index, Get Random Element, Add Element to Array, Remove Element from Array, Merge Arrays, Split Array into Chunks, Find Element in Array, Check if Array Contains Element, Sort Array, Reverse Array, Shuffle Array, Get Subarray (Slice), Clear Array, Transform Array.
JSON
Create Object, Parse JSON, Serialize JSON, Get Value by Path, Set Value by Path, Delete Value by Path, Check Key Exists, Merge JSON Objects, Get Object Keys, Get Object Values, Transform JSON, Get Value Type, Validate JSON.
Math
Add, Subtract, Multiply, Divide, Modulo, Power, Round, Absolute Value, Minimum, Maximum, Average, Random Number, Clamp Range, Convert Number.
Random Number with bounds from a range resource ({{delay}}.min, {{delay}}.max) is a convenient way
to make a random pause.
Regex
Check Match, Find All Matches, Find First Match, Replace by Pattern, Split by Pattern, Extract Groups, Match and Extract, Escape String.
DateTime
Get Current DateTime, Get Current Date, Get Current Time, Parse DateTime, Format DateTime, Add to DateTime, Difference Between Datetimes, Compare Datetimes, Period Start, Period End, Convert Timezone, Get Timestamp, Create DateTime.
Encode
Base64 Encode, Base64 Decode, Hex Encode, Hex Decode, URL Encode, URL Decode, UTF-8 to Binary, Binary to UTF-8.
Crypto
Encrypt Data, Decrypt Data, Generate Symmetric Key, Derive Key from Password, Generate RSA Key Pair, Encrypt with Public Key, Decrypt with Private Key, Hash Data, Sign Data, Verify Signature.
Identity
Realistic data for profiles: First Name, Last Name, Full Name, Username, Email, Password, Phone, Address, Company, Job Title, Date of Birth, UUID, User Agent, Generate Person — a consistent set of data in one action.
Updated
Telegram
The Telegram module in the Multogram Modules Constructor: account sessions, messages and comments, reactions and views, bots, dialogs and parsing, channels and groups, contacts, profile and privacy, stories. Which Multogram modes each action needs.
Files and databases
Multogram Modules Constructor modules for files and databases: Filesystem, Path, Excel/CSV, Archive, Database, SQL, MongoDB — all actions.