feat: add Telegram message action for robot notifications#1347
Merged
openminddev merged 6 commits intoOpenMind:mainfrom Jan 13, 2026
Merged
feat: add Telegram message action for robot notifications#1347openminddev merged 6 commits intoOpenMind:mainfrom
openminddev merged 6 commits intoOpenMind:mainfrom
Conversation
Add Telegram Bot API integration to enable robots to send status notifications directly to Telegram chats. Components: - TelegramMessage interface for message output - TelegramAPIConnector using aiohttp for async API calls - Example config for robot monitoring (battery, GPS alerts) - Comprehensive test suite (13 tests) Environment variables required: - TELEGRAM_BOT_TOKEN: Bot token from @Botfather - TELEGRAM_CHAT_ID: Target chat/group ID Follows existing action patterns (similar to Tweet action).
- Remove unused 'name' parameter from ActionConfig() - Add proper type annotation for load_action config dict - Add None check before using describe_action result
Renamed 'telegram_message' modules and interfaces to 'telegram' for consistency. Replaced environment variable-based configuration with explicit config fields for bot token and chat ID in TelegramAPIConnector. Updated tests and imports to reflect new structure and configuration approach. Removed obsolete config/telegram_monitor.json5.
openminddev
approved these changes
Jan 13, 2026
aydnOktay
pushed a commit
to aydnOktay/OM1
that referenced
this pull request
Jan 19, 2026
) * feat: add Telegram message action for robot notifications Add Telegram Bot API integration to enable robots to send status notifications directly to Telegram chats. Components: - TelegramMessage interface for message output - TelegramAPIConnector using aiohttp for async API calls - Example config for robot monitoring (battery, GPS alerts) - Comprehensive test suite (13 tests) Environment variables required: - TELEGRAM_BOT_TOKEN: Bot token from @Botfather - TELEGRAM_CHAT_ID: Target chat/group ID Follows existing action patterns (similar to Tweet action). * style: format test file with black * fix: resolve pyright type errors in telegram tests - Remove unused 'name' parameter from ActionConfig() - Add proper type annotation for load_action config dict - Add None check before using describe_action result * Refactor Telegram action and connector structure Renamed 'telegram_message' modules and interfaces to 'telegram' for consistency. Replaced environment variable-based configuration with explicit config fields for bot token and chat ID in TelegramAPIConnector. Updated tests and imports to reflect new structure and configuration approach. Removed obsolete config/telegram_monitor.json5. --------- Co-authored-by: openminddev <147775420+openminddev@users.noreply.github.com> Co-authored-by: openmindev <boyuan.eth@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
telegram_messageaction for sending robot status notifications via Telegram Bot APITelegramAPIConnectorusing aiohttp for async message deliverytelegram_monitor.json5for battery and GPS monitoring use caseFiles Added
src/actions/telegram_message/interface.py- Input/Output dataclassessrc/actions/telegram_message/connector/telegramAPI.py- Telegram Bot API connectorconfig/telegram_monitor.json5- Example config for robot monitoringtests/actions/telegram_message/test_telegramAPI.py- 13 unit testsEnvironment Variables Required
TELEGRAM_BOT_TOKEN- Bot token from @BotfatherTELEGRAM_CHAT_ID- Target chat ID for notificationsTest Plan