|
UTILITY - TELEGRAM BOT
Finding the Bot
The bot is named “AviorEco Monitor”, username @avioreco_monitor_bot. It can be opened in any of the following ways:
Once opened, tap “Start” (or send /start) to begin registration.
User Registration
The user starts a conversation with /start.
The bot prompts the user to share their Telegram contact, which is required to capture their phone number. This number is used to identify the sender of commands submitted via chat.
Once shared, a persistent keyboard appears with six buttons:
➕ New device
➖ Remove device
📋 My devices
🎛 Commands
🌐 Language
❓ Help

Adding a Device
Triggered by ➕ New device, or by typing /new <webid> <password>.
The bot prompts for the Web ID and password as two separate consecutive messages.
The expected authentication hash for the device is computed and stored against the entered password. There is no explicit confirmation regarding password validity. The subscription will begin receiving data only once (and if) the credentials match the actual requests sent by the device.
Removing a Device
Triggered by tapping ➖ Remove device (which displays an inline list of the user's currently linked devices) or by typing /remove <webid>.
Upon removing the subscription, every message previously displayed for that device in the chat (status, location, log, log2, text) is automatically deleted alongside the registration, leaving no orphaned or outdated messages behind.
Listing Devices
Triggered by tapping 📋 My devices or by typing /list. Displays all devices currently linked to that chat.
Sending Commands from Chat
Triggered by 🎛 Commands.
The target device is selected from a restricted list containing only units the user is currently subscribed to. Direct entry of an arbitrary Web ID is not permitted, ensuring commands can only be sent to devices for which access has already been verified.

The bot prompts the user to enter the command text:

The command is queued along with the sender's phone number and will be delivered to the device on its next HTTP request.
Changing Language
Triggered by tapping 🌐 Language or by typing /language.
Displays an inline keyboard with all supported languages, each labeled in its native language.
The selected language is permanently saved to the user's profile and applied to all future replies.
This setting is the sole mechanism for changing the bot's language. The language_code reported by Telegram on individual messages is intentionally ignored, as it often reflects account/region settings rather than the active client interface language; auto-synchronizing it would inadvertently overwrite the user's explicit choice.
Help
Triggered by tapping ❓ Help or by typing /help.
Shows a quick summary of the available buttons and their text-command equivalents, in the currently selected language.
Chat Message Lifecycle
Only device-generated data messages (status, location, log, log2, text, alert) remain permanently visible in the chat.
- Bot Replies: All other bot responses (instructions, confirmations, error messages) are replaced by subsequent ones, keeping the chat interface clean and uncluttered.
- User Input: Every message sent by the user (typed commands, button presses, shared contact) is deleted immediately after processing.
Abuse Protection
Every execution of the /new command (for any Web ID) increments a per-chat attempt counter, serving as a safeguard against repeated password-guessing attempts.
- Automatic Lockout: Upon reaching 30 accumulated attempts, the chat is automatically blocked and all associated device subscriptions are revoked.
- Unblocking: Unblocking is strictly a manual administrative procedure (never automatic), ensuring that any late-succeeding attempt cannot reverse its own block.
To request an unblock, please submit a ticket to the Contrive HelpDesk
|