Skip to main content

register_tools

Function register_tools 

Source
pub fn register_tools(
    registry: &mut ToolRegistry,
    gateway: Option<Arc<TelegramGateway>>,
) -> Result<(), ConfigError>
Expand description

Register Telegram tools. The gateway is shared with the server’s inbound message handler; when absent, tool calls fail with a configuration error.