Skip to main content
Glama

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
NameRequiredDescriptionDefault
private_key_requestYes

Implementation Reference

  • 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)}]
  • 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")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/armorwallet/armor-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server