static async Task AddWebhookAsync(TwitterContext twitterCtx) { try { Console.Write("What is the Webhook URL? "); string url = Console.ReadLine(); AccountActivity accAct = await twitterCtx.AddAccountActivityWebhookAsync(url); Webhook webhook = accAct.WebhooksValue.Webhooks.SingleOrDefault(); Console.WriteLine( $"Webhook for '{webhook.Url}' " + $"added with ID: {webhook.ID}, " + $"created at {webhook.CreatedTimestamp}"); } catch (TwitterQueryException tqe) { Console.WriteLine(tqe.Message); } }