// messages.deleteChatUser#c3c5cd23 chat_id:int user_id:InputUser = messages.StatedMessage; public async Task <MessagesStatedMessage> DeleteChatUser(int chatId, InputUser userToDelete) { var request = new DeleteChatUserRequest(chatId, userToDelete); await SendRpcRequest(request); return(request.statedMessage); }
public async Task <MessagesStatedMessage> LeaveChat(int chatId) { var request = new DeleteChatUserRequest(chatId, new InputUserContactConstructor(authenticatedUser.id)); await SendRpcRequest(request); return(request.statedMessage); }
public async Task <Messages_statedMessageConstructor> DeleteChatUser(int chatId, int userId) { var request = new DeleteChatUserRequest(chatId, new InputUserContactConstructor(userId)); await _sender.Send(request); await _sender.Receive(request); return(request.message); }