Skip to main content
Glama

send_key_to_telegram

Securely transmit cryptocurrency wallet keys or mnemonics to Telegram for backup or sharing purposes within the Armor Crypto MCP server.

Instructions

Send the mnemonic or private key to telegram.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
private_key_requestYes

Implementation Reference

  • MCP tool handler function for 'send_key_to_telegram', registered with @mcp.tool(). It checks authentication and delegates to the ArmorWalletAPIClient instance.
    @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)}]
  • Pydantic input schema/model for the send_key_to_telegram tool, defining wallet name and key type (private key or 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")
  • Core implementation in ArmorWalletAPIClient that sends a POST request to the '/users/telegram/send-message/' API endpoint with the PrivateKeyRequest payload.
    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)
  • The @mcp.tool() decorator registers the send_key_to_telegram function as an MCP tool.
    @mcp.tool()

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/emmaThompson07/armor-crypto-mcp'

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