updateMessages function

Future<void> updateMessages(
  1. String dialogId,
  2. Map<String, dynamic> params, [
  3. Set<String>? messagesIds
])

params - additional parameters for request. Use class-helper UpdateMessageParameters to simple config request

Implementation

Future<void> updateMessages(String dialogId, Map<String, dynamic> params,
    [Set<String>? messagesIds]) {
  String msgIdsString = "";
  if (messagesIds?.isNotEmpty ?? false) {
    msgIdsString = messagesIds!.join(',');
  }

  return UpdateMessageQuery(msgIdsString, dialogId, params).perform();
}