Telegram·
send text and photos to the owner's chat from any persona — tools/telegram.py, 1 tool.
From the module docstring
Telegram tool — rich actions + per-chat conversation memory.
| tool | does |
|---|---|
telegram |
Telegram bot — rich set of actions. |
telegram·
telegram(
action: str = 'send_message',
chat_id: Optional[str] = None,
text: Optional[str] = None,
parse_mode: str = 'Markdown',
disable_notification: bool = False,
reply_to_message_id: Optional[int] = None,
file_path: Optional[str] = None,
caption: Optional[str] = None,
message_id: Optional[int] = None,
new_text: Optional[str] = None,
question: Optional[str] = None,
options: Optional[List[str]] = None,
is_anonymous: bool = True,
limit: int = 10,
) -> str
Telegram bot — rich set of actions.
Actions
Messages: - "send_message": chat_id + text → send text (auto-records to history) - "edit_message": chat_id + message_id + new_text - "delete_message": chat_id + message_id - "send_photo": chat_id + file_path [+ caption] - "send_document": chat_id + file_path [+ caption] - "send_poll": chat_id + question + options[] Info: - "get_me": bot identity - "get_chat": chat_id → chat info - "get_updates": last N updates (no listener needed) - "ping": connectivity check History: - "get_history": chat_id [+ limit] → last N msgs from local DB - "clear_history": chat_id → wipe local history for that chat
chat_id falls back to TELEGRAM_DEFAULT_CHAT_ID if omitted.
source: tools/telegram.py:123