send_key_to_telegram
Transmit wallet mnemonic or private key securely to Telegram for streamlined access and management within the Armor Crypto MCP server ecosystem.
Instructions
Send the mnemonic or private key to telegram.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| private_key_request | Yes |
Implementation Reference
- armor_crypto_mcp/armor_mcp.py:634-646 (registration)MCP tool registration decorator and wrapper handler that delegates to the ArmorWalletAPIClient method.@mcp.tool() async def send_key_to_telegram(private_key_request: PrivateKeyRequest) -> Dict: """ Send the mnemonic or private key to telegram. """ if not armor_client: return [{"error": "Not logged in"}] try: result: Dict = await armor_client.send_key_to_telegram(private_key_request) return result except Exception as e: return [{"error": str(e)}]
- armor_crypto_mcp/armor_client.py:720-724 (handler)Core implementation in ArmorWalletAPIClient: prepares payload from PrivateKeyRequest and makes POST API call to '/users/telegram/send-message/' endpoint.async def send_key_to_telegram(self, data: PrivateKeyRequest) -> Dict: """Send the mnemonic or private key to telegram.""" payload = data.model_dump(exclude_none=True) return await self._api_call("POST", f"users/telegram/send-message/", payload)
- Pydantic input schema model defining 'wallet' (str) and 'key_type' (Literal['PRIVATE_KEY', 'MNEMONIC']).class PrivateKeyRequest(BaseModel): wallet: str = Field(description="Name of the wallet to get the mnemonic or private key for") key_type: Literal['PRIVATE_KEY', 'MNEMONIC'] = Field(description="Whether to return the private or mnemonic key")