/// <summary> /// Deletes messages by their identifiers. /// </summary> /// <param name="messageIdList">Message ID list</param> /// <returns>The method returns the list of successfully deleted messages in Task<List<int>>.</returns> public async Task <List <int> > DeleteMessagesAsync(params int[] messageIdList) { if (messageIdList.Length == 0) { return(new List <int>()); } await ConnectAsync(); return(await _client.DeleteMessages(new List <int>(messageIdList))); }