public async Task Say(BotMessage message) { if (string.IsNullOrEmpty(message.ChatHub?.Id)) { throw new MissingChannelException("When calling the Say() method, the message parameter must have its ChatHub property set."); } var client = _connectionFactory.CreateChatMessenger(); await client.PostMessage(SlackKey, message.ChatHub.Id, message.Text, message.Attachments); }