/// <summary>
 /// Adds a new channel chat message
 /// </summary>
 /// <param name="options">Full chat message options</param>
 /// <returns>Newly added channel chat message</returns>
 public ITeamChatMessage AddBatch(ChatMessageOptions options)
 {
     return(AddBatchAsync(PnPContext.CurrentBatch, options).GetAwaiter().GetResult());
 }
        /// <summary>
        /// Adds a new channel chat message
        /// </summary>
        /// <param name="batch">Batch the message is associated with</param>
        /// <param name="options">Full chat message options</param>
        /// <returns>Newly added channel chat message</returns>

        public ITeamChatMessage AddBatch(Batch batch, ChatMessageOptions options)
        {
            return(AddBatchAsync(batch, options).GetAwaiter().GetResult());
        }
        /// <summary>
        /// Adds a new channel chat message
        /// </summary>
        /// <param name="options">Full chat message options</param>
        /// <returns>Newly added channel chat message</returns>

        public async Task <ITeamChatMessage> AddBatchAsync(ChatMessageOptions options)
        {
            return(await AddBatchAsync(PnPContext.CurrentBatch, options).ConfigureAwait(false));
        }
 /// <summary>
 /// Adds a new channel chat message
 /// </summary>
 /// <param name="options">Full chat message options</param>
 /// <returns>Newly added channel chat message</returns>
 public ITeamChatMessage Add(ChatMessageOptions options)
 {
     return(AddAsync(options).GetAwaiter().GetResult());
 }