[][src]Function tgbot::webhook::run_server

pub async fn run_server<A, P, H>(
    address: A,
    path: P,
    handler: H
) -> Result<(), HyperError> where
    A: Into<SocketAddr>,
    P: Into<String>,
    H: UpdateHandler + Send + 'static, 

Starts a server for webhook

Arguments

  • address - Bind address
  • path - URL path for webhook
  • handler - Updates handler