addChatUser method

Future<Result<UpdatesBase>> addChatUser({
  1. required int chatId,
  2. required InputUserBase userId,
  3. required int fwdLimit,
})

Add Chat User.

ID: f24753e3.

Implementation

Future<Result<UpdatesBase>> addChatUser({
  required int chatId,
  required InputUserBase userId,
  required int fwdLimit,
}) async {
  // Preparing the request.
  final request = MessagesAddChatUser(
    chatId: chatId,
    userId: userId,
    fwdLimit: fwdLimit,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}