pub async fn create(
authorization: &CredentialsOrApiKey,
owner: &WebhookOwner,
url: &str,
events: &[EventType],
secret: Option<&str>,
) -> Result<Registration>Expand description
Register a webhook for a group or a chat you can read, or, signed in with an
API key, for that key. In production url must be https on a public address.
Pass secret to choose the signing secret; otherwise one is made.